I am trying to create a network bridge to allow virtual machines to use my wireless card to connect to my home network. My plan was to do something like:
iw dev wlp12s0 set 4addr on brctl addbr xenbr0 brctl addif xenbr0 wlp12s0 ip link set dev xenbr0 up wpa_supplicant -B -b xenbr0 -i wlp12s0 -c <(wpa_passphrase $MYSSID $MYPASSPHARSE) dhcpcd xenbr0 ebtables -t nat -A POSTROUTING -s $VMMAC -j snat --to-source $HOSTMAC
Which I think works in principle, but my wireless router cannot handle
iw dev wlp12s0 set 4addr on
even if I do not setup a bridge. I would consider buying a new wireless router if this is the correct approach and there is an affordable home router that is known to work. Is there a different way of tackling the problem?