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?