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!
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!