I would personally do all the networking in a VM. You can create a VM with a virtual network interface connecting your machine to the VM and then use PCIe passthough to passthough WiFi and the network plug.
This is much more complicated but it has the benefit of not screwing up your host system. If you break the VM you can roll it back or recreate it.