Hello
so I installed proxmox with several win 10 VM . So I only have 1 public IP for several VMs. That s why I went for masquerading set up.
My network code is :
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 195.xxx.171.60
netmask 255.255.255.0
gateway 195.xxx.171.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
auto vmbr1
#private sub network
iface vmbr1 inet static
address 192.168.1.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.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
With that, Only 1 VM can reach internet at the time. First I start, first to connect.
My aim is to run several VMs at the same time that can connect to internet^^
Thus I need a bridge somewhere but I don t know where to put it. Also which kind of bridge would be better ?
so I installed proxmox with several win 10 VM . So I only have 1 public IP for several VMs. That s why I went for masquerading set up.
My network code is :
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 195.xxx.171.60
netmask 255.255.255.0
gateway 195.xxx.171.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
auto vmbr1
#private sub network
iface vmbr1 inet static
address 192.168.1.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.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
With that, Only 1 VM can reach internet at the time. First I start, first to connect.
My aim is to run several VMs at the same time that can connect to internet^^
Thus I need a bridge somewhere but I don t know where to put it. Also which kind of bridge would be better ?