No internet on VMs

umlam002

New Member
Dec 7, 2024
1
0
1
Hi all,
I have rented dedicated Proxmox hosting and I have very interesting issue.

The internet works perfectly fine on the Proxmox host, but it does not work on any of my virtual machines (VMs).
On Ubuntu servers (VMs) ping www.google.com works fine but wget does not.

Here are some details about my network configuration:
auto lo
iface lo inet loopback

iface eno1 inet manual
iface eno2 inet manual

auto vmbr0
iface vmbr0 inet static
address xxx.xxx.127.14/24
gateway xxx.xxx.127.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward

auto vmbr1
iface vmbr1 inet static
address 10.10.10.100/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o vmbr0 -j MASQUERADE
post-up iptables -A FORWARD -i vmbr1 -o vmbr0 -s 10.10.10.0/24 -j ACCEPT
post-up iptables -A FORWARD -i vmbr0 -o vmbr1 -m state --state RELATED,ESTABLISHED -j ACCEPT
post-down iptables -t nat -D POSTROUTING -s 10.10.10.0/24 -o vmbr0 -j MASQUERADE
post-down iptables -D FORWARD -i vmbr1 -o vmbr0 -s 10.10.10.0/24 -j ACCEPT
post-down iptables -D FORWARD -i vmbr0 -o vmbr1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 81 -j DNAT --to-destination 10.10.10.10:81
iptables -A FORWARD -p tcp -d 10.10.10.10 --dport 81 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 10.10.10.10:80
iptables -A FORWARD -p tcp -d 10.10.10.10 --dport 80 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 10.10.10.10:443
iptables -A FORWARD -p tcp -d 10.10.10.10 --dport 443 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

Could anyone point me in the right direction or suggest any additional troubleshooting steps? Why is internet connectivity working on the host but not on the VMs?

Any help or guidance would be greatly appreciated!

Thank you in advance!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!