ZeroTier as VPN into home LAN

Hi, trying to setup ZeroTier after watching Tom’s videos and running into a snag. I followed the instructions in the link below on a clean install of debian 11.3 on a Hyper-V VM and setup the ZT networks etc. I can ping/connect to the VM from outside my LAN, say from an iPad on cellular, but cannot connect to the rest of my LAN. From ZT Central, I’m able to see the VM is connected to the ZT Network.

My home network that I am trying to connect to is 192.168.1.0/24

The VM has address 192.168.1.245 on this network.

I am able to ssh into the VM remotely (eg., via iPad with cellular), but I am unable to connect to other devices on the network. I can ping the VM remotely, but cannot ping other devices on my LAN remotely. Eg., I can ping 192.168.1.245 (the VM), but not say 192.168.1.1

On ZT Central, I have checked Allow Bridging and Do Not Assign IP for the VM. And it looks like the VM on ZT Central has two IP’s: 192.168.1.245 and 172.27.112.121

The auto assign range is 192.168.1.246 to 192.168.1.255 and I have made sure this does not conflict with the DHCP range on my Lan.

Lastly, the route on ZT Central is 192.168.0.0/23 via 172.27.112.121 and 192.168.0.0/23 via 192.168.1.245

I’ve also tried echo "0" > /proc/sys/net/bridge/bridge-nf-call-iptables and iptables -A FORWARD -p all -i br0 -j ACCEPT as suggested at the end of the article.

Any thoughts on how I can get this to work?

Thank you!

https://zerotier.atlassian.net/wiki/spaces/SD/pages/193134593/Bridge+your+ZeroTier+and+local+network+with+a+RaspberryPi

P.S. For those trying to do the same, note that with the debian/Hyper-V combo, you must specify the MAC address of the bridge interface to be that supplied by Hyper-V or else you will lose network access to the VM. That took me a few days to realize so thought I’d share that in case it’s not obvious to other who are trying to do the same…

Thank you!

1 Like

I have not tested the bridging functions with ZT.