Private Network on Proxmox VE 6

spy8989

New Member
Jun 30, 2021
4
0
1
37
Hello,

I am trying to set up a private network on proxmox. I did it according to the documentation https://pve.proxmox.com/wiki/Network_Configuration, but the machine does not have internet access. Proxmox is installed on a dedicated server that has only one NIC card.

Below I am sending the configuration that is currently applied on server.

Code:
# network interfaces
    auto lo
    iface lo inet loopback

    iface eno3 inet manual

    auto vmbr0
    iface vmbr0 inet dhcp
      bridge-ports eno3
      bridge-stp off
      bridge-fd 0

auto vmbr1
iface vmbr1 inet static
  address 192.168.50.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.50.0/24' -o vmbr0 -j MASQUERADE
  post-down iptables -t nat -D POSTROUTING -s '192.168.50.0/24' -o vmbr0 -j MASQUERADE

Could I please help with the configuration?
 
Don't forget to add this if you enabled your firewalls:
Code:
post-up   iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
 
I add this but still no connection from VM to Internet. Are the rules you specified to be added instead of
Code:
post-up   iptables -t nat -A POSTROUTING -s '192.168.50.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.50.0/24' -o vmbr0 -j MASQUERADE
or as additional?
 
I added rules as additional and now gets destination host unreachable when trying to ping 8.8.8.8
 

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!