Jump to content

Zerotier setup for full tunnel mode (VPN) issu - no connection.

Hello,

following guide, i am pretty sure what zerotier was installed and configured correctly.

LAN and home network connections works fine, but any connection to Internet are broken from devices inside zerotier lan.

Current setup is:
Zerotier account:

Spoiler

 

image.png.a91f27b92deeb33bbb445395848e440d.png

image.thumb.png.10f218f46ceeb20e3e06e85fd7624f9c.png

 

 

 

Gateway configuration:

  • OrangePi with Armbian 23 Bullseye
  • ip route:
default via 192.168.1.1 dev eth0 proto dhcp metric 100
169.254.0.0/16 dev ztfp6azmws scope link metric 1000
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.95 metric 100
192.168.200.0/24 dev ztfp6azmws proto kernel scope link src 192.168.200.95
  • Iptables output:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  192.168.200.0/24     anywhere
ACCEPT     all  --  anywhere             192.168.200.0/24
  • iptables config:
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o eth0 -s 192.168.200.0/24 -j SNAT --to-source <XXX.XXX.XXX.XXX external IP>
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
-A FORWARD -i ztfp6azm -s 192.168.200.0/24 -d 0.0.0.0/0 -j ACCEPT
-A FORWARD -i eth0 -s 0.0.0.0/0 -d 192.168.200.0/24 -j ACCEPT
:OUTPUT ACCEPT [0:0]
COMMIT

  • port forwarding output (cat /proc/sys/net/ipv4/ip_forward) : 1
  • Firewall rules:

image.png.29e6414f99c3ac9f08d523e7e4fe7a4a.png

  • PC configuration:

image.png.18f88bddee54b53049ddf6667d5f9a37.png

 

From 192.168.200.XXX to 192.168.1.XXX everything work (access to samba and other local resources).

And connection does not work to internet from 192.168.200.XXX via 192.168.200.95 (same thing from windows pc, from android phone).

I do not understand why this bloody thing does not work💩

 

 

PC Specs - AMD Ryzen 7 3700X - Asrock AB350 ITX - 64GB DDR4-3600MHz - Geforce GTX 1080 - Samsung 960Pro - Monsterlabo's "The First" - Corsair SF450

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×