Hello everyone, I am new to Proxmox, I have been trying to configure the network with private IPs for several days but I cannot get the VMs to go to the internet I have been testing but nothing, does anyone know the failure? Greetings and thank you.
auto enp2s0
iface enp2s0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
gateway xxx.xxx.xxx.86
pointopoint xxx.xxx.xxx.86
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp
auto vmbr1
iface vmbr1 inet static
address 172.26.100.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s ’172.26.100.0/24’ -o enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ’172.26.100.0/24’ -o enp2s0 -j MASQUERADE
auto enp2s0
iface enp2s0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
gateway xxx.xxx.xxx.86
pointopoint xxx.xxx.xxx.86
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp
auto vmbr1
iface vmbr1 inet static
address 172.26.100.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s ’172.26.100.0/24’ -o enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ’172.26.100.0/24’ -o enp2s0 -j MASQUERADE