Hi,
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.
https://gist.github.com/ort163/21283257b007ddddc7fd8bcea5c252a0
https://zerotier.atlassian.net/wiki/spaces/SD/pages/224395274/Route+between+ZeroTier+and+Physical+Networks
https://zerotier.atlassian.net/wiki/spaces/SD/pages/193134593/Bridge+your+ZeroTier+and+local+network+with+a+RaspberryPi
https://discuss.zerotier.com/t/pi-zero-one-port-linux-bridge/757
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