On a Proxmox host with multiple public IPs (one per VM), what's the right way to introduce a VMBR for private IPs? The following works for the public IPs, but VMBR1 can't reach the internet.
I tried swapping out vmbr0 for eno1 in the masquerade lines, but no luck.
I tried swapping out vmbr0 for eno1 in the masquerade lines, but no luck.
Code:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet manual
iface eno2 inet manual
auto vmbr0
iface vmbr0 inet static
address {$PRIMARY PUBLIC IP}
gateway {$PUBLIC GATEWAY}
bridge-ports eno1
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.0.1/16
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.0.0/16' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.0.0/16' -o eno1 -j MASQUERADE