I have a server at Hetzner with several public IPs. I configured it in bridge mode. Everything is working so far, but how do I tell the individual VM to please go online with this public IP address? so the gateway?
auto lo
iface lo inet loopback
auto enp7s0
iface enp7s0 inet static
address 88.188.61.127/27
gateway 88.188.61.161
post-up sysctl -w net.ipv4.ip_forward=1
post-up iptables -t nat -A PREROUTING -i enp7s0 -p tcp -m multiport ! --dport 45735 -j DNAT --to 10.10.10.1
post-up iptables -t nat -A PREROUTING -i enp7s0 -p udp -j DNAT --to 10.10.10.1
auto vmbr0
iface vmbr0 inet static
address 88.188.61.127/27
bridge-ports none
bridge-stp off
bridge-fd 0
up ip route add 89.178.66.171/27 dev vmbr0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.0/31
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s '10.10.10.1/31' -o enp7s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.1/31' -o enp7s0 -j MASQUERADE
#Mikrotik WAN Proxmox LAN
auto vmbr2
iface vmbr2 inet static
bridge-ports none
bridge-stp off
bridge-fd 0
#DMZ
auto vmbr3
iface vmbr3 inet static
bridge-ports none
bridge-stp off
bridge-fd 0
#VM-Intern
source /etc/network/interfaces.d/*