I have a dedicated Proxmox server on Hetzner with a single IP address, Is it possible with this configuration to add an extra single (public) IP address which a VM directly can use (without NAT rules)?
Code:
iface enp0s31f6 inet static
address 138.x.x.18/26
gateway 138.x.x.1
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.124.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
up iptables -t nat -A POSTROUTING -s '192.168.124.0/24' -o enp0s31f6 -j MASQUERADE
down iptables -t nat -D POSTROUTING -s '192.168.124.0/24' -o enp0s31f6 -j MASQUERADE
Last edited: