Hetzner + OPNsense + one additional IP settings WAN / LAN / DNS / Cloudflare

tukan

New Member
Oct 13, 2020
6
0
1
54
Hello, can you advise me how to set up OPNsense with this network interface? My point is to set up WAN and LAN and assign virtual IP addresses to virtual machines for Internet access on domains using DNS Cloudflare. Sorry for bad English. I hope you understand me.

My /etc/network/interfaces


# loopback device
auto lo
iface lo inet loopback
iface lo inet6 loopback

# network device
auto enp2s0
iface enp2s0 inet static
address 144.76.165.44
netmask 255.255.255.255
gateway 144.76.165.33
pointopoint 144.76.165.33

iface enp2s0 inet6 static
address 2a01:4f8:200:4171::1
netmask 128
gateway fe80::1
up sysctl -p

auto vmbr0
iface vmbr0 inet static
address 144.76.165.44
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 144.76.165.126/32 dev vmbr0

iface vmbr0 inet6 static
address 2a01:4f8:200:4171::2
netmask 64
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!