Hello,
I have a new proxmox 5 installation on a dedicated server. The VM that I create cannot access any outside network.
My configuration on the host is as follows... vmbr0 has the public static IP info marked with the x's.
auto lo
iface lo inet loopback
iface enp5s0f0 inet manual
auto vmbr0
iface vmbr0 inet static
address x.x.x.x
netmask 255.255.255.0
gateway x.x.x.1
bridge_ports enp5s0f0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
When I create the VM I choose vmbr1 and give the following IP information when installing the OS (Debian 9 netinst)....
IP: 10.10.10.5
Gateway: 10.10.10.1
Netmask: 255.255.255.0
I am unable to ping anything, especially 8.8.8.8, from the VM. I have no idea what's wrong. I have been working on this for hours. I hope someone can help.
I have a new proxmox 5 installation on a dedicated server. The VM that I create cannot access any outside network.
My configuration on the host is as follows... vmbr0 has the public static IP info marked with the x's.
auto lo
iface lo inet loopback
iface enp5s0f0 inet manual
auto vmbr0
iface vmbr0 inet static
address x.x.x.x
netmask 255.255.255.0
gateway x.x.x.1
bridge_ports enp5s0f0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
When I create the VM I choose vmbr1 and give the following IP information when installing the OS (Debian 9 netinst)....
IP: 10.10.10.5
Gateway: 10.10.10.1
Netmask: 255.255.255.0
I am unable to ping anything, especially 8.8.8.8, from the VM. I have no idea what's wrong. I have been working on this for hours. I hope someone can help.