How can I running zerotier without NAT mode?

Physical Network:
Subnet 1: 192.168.128.0/24
Subnet 2: 192.168.129.0/24
They are in different locations.

Zerotier Network:
Subnet: 10.0.0.0/24

Openwrt router A is 192.168.128.254, and have zerotier ip 10.0.0.1.
Openwrt router B is 192.168.129.254, and have zerotier ip 10.0.0.2.

I have configured zerotier routes:
192.168.128.0/24 10.0.0.1
192.168.129.0/24 10.0.0.2
And enable Allow Ethernet Bridging both.

For now I can ping and access subnet device for each other.

Then I have a Nginx server on 192.168.128.1.
When a client access from subnet 192.168.129.0/24, Nginx log client 10.0.0.2 as client ip.

How can Nginx get origin subnet client ip address?

You don’t need bridging or NAT in this setup.
If you’re having trouble configuring OpenWrt firewall, I suggest to ask for help in OpenWrt forum.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.