Proxmox wifi

chaimt

New Member
Dec 11, 2022
1
0
1
Hi,
I am trying to install proxmox on a server with wifi.

this is my /etc/network/interfaces:

auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0

iface vmbr0 inet static
address 10.0.0.202/24
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 '10.0.0.0/24' -o wlp0s20f3 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o wlp0s20f3 -j MASQUERADE

iface wlp0s20f3 inet manual
address 10.0.0.2/24
gateway 10.0.0.1

when starting vms i get an error of network does not exist
 
It looks like you're trying to use the wlp0s20f3 interface as a gateway for your vmbr0 bridge, but it hasn't been added to the bridge. To fix this, you'll need to add the wlp0s20f3 interface to the vmbr0 bridge in your /etc/network/interfaces file.
That won't work. You can't bridge that wifi interface, as then no guests would be able to access other hosts or the internet, because the Wifi AP wouldn't access packets coming from another MAC. PVE has to route packets between the bridge and the wifi interface and then you don'T need that bridge to be bridged to any physical interface.

If I would have to guess, then I would say it could be problematic that you are trying to NAT between the same subnet (10.0.0.0/24 to 10.0.0.0/24). You could try to use another subnet for communication within the PVE host. But I'm not that deep into networking, so I might be wrong.
 
Last edited: