I have been struggling with a Raspberry Pi VPN bridged (layer 2) gateway solution for some time now. I have a Road Warrior requirement, to access resources on my home network when working remotely. My Road Warrior devices are all Windows 10 based so layer 2 is a must. I have a domain name pointing to my WAN IP and there are no constraints on incoming ports or services imposed by my ISP. I already run a PiVPN Wireguard VPN layer 3 gateway for iOS devices and all works perfectly.
I used PiVPN OpenVPN in a bridged confirguration for a couple of years but when Debian 10 (Buster) came along something changed in the Raspberry Pi OS or in the PiVPN build that caused it to fail. I have never found out a way to fix it.
ZeroTier looked like the way forward and I have the network set up and ready with a couple of devices on it which are working properly across the SDN. It’s a great product (service!) but I’m missing the final piece. I have read a number of articles on how to use a Raspberry Pi to provide a layer 2 bridge but failed with every attempt to build one. I have a Raspberry Pi Model B Rev 2 which should be sufficient for the job.
As a second step it would be great to force all Internet traffic from remote machines through the VPN gateway and out through my home network. I use Pi-Hole DNS , then DoH to Cloudflare and would like to have the same when connected remotely. But this is a secondary requirement.
Has anyone an up to date and working ‘How-to’ that they might share?
Thanks in advance