A bit info about setup:
I ordered second IP for my server and I would like to use it to provider internet connectivity to my VMs in NAT
Config:
:1 interface seems to be inactive in Proxmox panel but works ( I can access Proxmox with it)
I ordered second IP for my server and I would like to use it to provider internet connectivity to my VMs in NAT
Config:
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp3s0
iface enp3s0 inet static
address MAIN IP/32
gateway MAIN IP GW
pointopoint MAIN IP GW
auto enp3s0:1
iface enp3s0:1 inet static
address SECOND IP/32
gateway SECOND IP GW
pointopoint SECOND IP GW
auto vmbr0
iface vmbr0 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
#VM internal range
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp3s0:1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp3s0:1 -j MASQUERADE
:1 interface seems to be inactive in Proxmox panel but works ( I can access Proxmox with it)