Hello,
I recently installed Proxmox on my system and used NAT in order to connect the management interface to WiFi without Ethernet because my router is in a difficult spot to bridge the connection. I can access the management interface but when I try to boot Ubuntu in a VM, it doesn't get internet. Is there a way to fix this?
My /etc/network/interfaces
I recently installed Proxmox on my system and used NAT in order to connect the management interface to WiFi without Ethernet because my router is in a difficult spot to bridge the connection. I can access the management interface but when I try to boot Ubuntu in a VM, it doesn't get internet. Is there a way to fix this?
My /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
iface enp11s0 inet manual
auto wlp2s0b1
iface wlp2s0b1 inet static
wpa-ssid "******"
wpa-psk "**********"
address 192.168.0.25
netmask 255.255.255.0
gateway 192.168.0.1
auto vmbr0
iface vmbr0 inet static
address 192.168.0.31
netmask 255.255.255.0
bridge-ports wlp2s0b1
bridge-stop off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o wlp2s0b1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o wlp2s0b1 -j MASQUERADE