Hello. I'm running Proxmox 4.4-1. I followed the guide at https://pve.proxmox.com/wiki/Network_Model for setting up Masqueraded NAT since my Proxmox host has a single public IP (example as 10.0.0.174 below), but my containers can't reach the Internet. They can ping my Proxmox host's gateway 192.168.1.1, and I can SSH into them from my Proxmox host, but they can't ping other devices on my network like 10.0.0.175 or Internet addresses like 8.8.8.8 or google.com. After editing /etc/network/interfaces I restarted networking with systemctl restart networking and configured the container as:
Bridge: vmbr1
IPv4: Static
IPv4/CIDR: 192.168.1.2/24
Gateway (IPv4): 192.168.1.1
IPv6: Static
The Proxmox host's /etc/network/interfaces:
Bridge: vmbr1
IPv4: Static
IPv4/CIDR: 192.168.1.2/24
Gateway (IPv4): 192.168.1.1
IPv6: Static
The Proxmox host's /etc/network/interfaces:
Code:
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 10.0.0.174
netmask 255.255.255.224
gateway 10.0.0.161
auto vmbr1
iface vmbr1 inet static
address 192.168.1.1
netmask 255.255.255.0
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 '192.168.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE