Bridge WiFi to Switch for other devices to connect to? - eviltoast

Hiya, I’ve got a desktop (connected to wifi), and a server (without a networking card), and I do not have access to Ethernet/or the router. However, I do have a networking switch - and was wondering if I could bridge the WiFi from my desktop(Nobara), to the Switch, and have my other devices such as Raspberry Pi and my main server connect to that. If thats possible please let me know how, or point me to some resources, I believe I have to touch iptables in this case, but have never tweaked those before.

This is a very temporary solution for not having access to a router. But gotta live like this for 5 months, so gotta find a solution to get WiFi on my server, as cheap as possible.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 months ago

    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.

    • Lunch@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      Thanks for this, although I did end up buying a WiFi extender to solve my issue. But will take notes of his for the future!

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        That’s honestly a much better solution. I installed OpenWRT on one many years back and it worked just fine for providing networking for my homelab.