Private Network on Proxmox VE 6

spy8989

New Member
Jun 30, 2021
4
0
1
38
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