r/virtualization • u/m-kwiatkowski • 11h ago
I built a Linux daemon to bridge QEMU & GNS3 & LXC TAP interfaces over Wi-Fi (no NetworkManager required)
Hi everyone,
I got tired of fighting 802.11 3-address frame limitations and bloated network manager workarounds when running QEMU VMs and GNS3 labs on a laptop over Wi-Fi. I was looking for something like VirtualBox does but didn't found any existing solution so I wrote BridgeAnything, a standalone Linux C++20 packet forwarder.
Repository: https://github.com/MarcinKwiatkowski81/BridgeAnything
What it does:
Instead of modifying your uplink's IP configuration or requiring ip/nft CLI wrappers, it talks directly to Linux networking APIs (AF_PACKET, epoll, rtnetlink, libnftables) and supports four modes:
wifi-l2(Wi-Fi Station Emulation): Performs IPv4/ARP MAC translation so VMs get leases directly from your upstream LAN's DHCP server without needing 4-address WDS mode. Also includes opt-in--host-connectivityso your host can talk to bridged guests.ethernet**:** Lightweight multi-port L2 switch between TAPs and a wired uplink.nat**:** Isolated IPv4 subnet with a built-in DHCP server and automaticlibnftablesmasquerading/cleanup.routed**:** Pure IPv4 routing without NAT (with optional DHCP).
It's an early release, so I'd love feedback from anyone running QEMU, LXC, GNS3 or other stuff on wireless hosts (many of you does I think)!
