[SOLVED] No internet on vmbr1

steelyx

New Member
Feb 13, 2024
6
0
1
I have a limited amount of ip adresses, so I am trying to forward some of my proxmox ports to the vm. But when I put my vm on vmbr1 and give it ip 192.168.10.245 and gateway 192.168.10.241 it won't let me access the internet. The vm is a ubuntu server.

Skjermbilde 2024-02-15 094653.png
 
Last edited:
Hi,

you still need to configure routing/NATing between those two bridges. Otherwise, all traffic stays on vmbr1 and cannot leave it.

Have a look at our Masquerading (NAT) with iptables guide, that should explain what's needed here.

Hope this helps!
 
  • Like
Reactions: steelyx
Hi,

you still need to configure routing/NATing between those two bridges. Otherwise, all traffic stays on vmbr1 and cannot leave it.

Have a look at our Masquerading (NAT) with iptables guide, that should explain what's needed here.

Hope this helps!
Ok, I got a connection to the internet now, but simple features in the vm like apt update and upgrade do not work. The pings I have done have been successful
 
Ok, I got a connection to the internet now, but simple features in the vm like apt update and upgrade do not work. The pings I have done have been successful
That sounds like you haven't set up DNS correctly. But you need to share some more information.

What's configured on the host? How do the guests get their IP/DNS? Static/DHCP? What is their network configuration? Etc.
 
That sounds like you haven't set up DNS correctly. But you need to share some more information.

What's configured on the host? How do the guests get their IP/DNS? Static/DHCP? What is their network configuration? Etc.
host:
1708114937968.png
VM:
Skjermbilde 2024-02-15 135248.png
 
Last edited:
Hi,

can you please post the output of ip a, ip r and apt update from inside the VM?
They should provide some valuable information, as the contain the currently used configuration. The netplan e.g. might not get applied (correctly).

Further, please provide the output from the host of iptables -L -t nat, to confirm the NAT rules are in place.
 
Hi,

can you please post the output of ip a, ip r and apt update from inside the VM?
They should provide some valuable information, as the contain the currently used configuration. The netplan e.g. might not get applied (correctly).

Further, please provide the output from the host of iptables -L -t nat, to confirm the NAT rules are in place.
Host:
Skjermbilde 2024-02-15 162102.png
VM:
Skjermbilde 2024-02-15 155217.png
Skjermbilde 2024-02-15 155237.png
Skjermbilde 2024-02-15 155446.png
 
Hi,

can you please post the output of ip a, ip r and apt update from inside the VM?
They should provide some valuable information, as the contain the currently used configuration. The netplan e.g. might not get applied (correctly).

Further, please provide the output from the host of iptables -L -t nat, to confirm the NAT rules are in place.
Ok, I actually fixed it. Just reset the iptable and reloaded the interface and now it works.

I do not fully understand iptables so can you help me just forwarding some of my ports to the VM? I am hosting a webserver

1708072507287.png
 
Last edited:
Hi,

can you please post the output of ip a, ip r and apt update from inside the VM?
They should provide some valuable information, as the contain the currently used configuration. The netplan e.g. might not get applied (correctly).

Further, please provide the output from the host of iptables -L -t nat, to confirm the NAT rules are in place.
Nevermind I figured it out, thx for the help :)
 
Last edited:

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!