I currently have 2 RT-AC68U routers both running Merlin 386.11, and I configured them them to form 2 subnets as follows
ROUTER 1:
Wan ip: Public ip
Lan ip: 192.168.1.1
Subnet mask: 255.255.255.0
Static routing rule: 192.168.2.0/24 via 192.168.1.2
ROUTER 2 (connected to ROUTER 1 lan port)
Wan ip: 192.168.1.2
Lan ip: 192.168.2.1
Subnet mask: 255.255.255.0
Firewall and NAT on ROUTER 2 are disabled using the webgui.
However, I get weird behaviour when trying to ssh a server (192.168.2.2) on the lan of ROUTER 2.
This is wireshark on my laptop monitoring ssh packet:
When my computer is connected to ROUTER 1 wifi (connection fails, dst ip 0.0.0.0):
When my computer is connected to ROUTER 2 wifi (connection success, dst ip is my computer ip):
I have also verified using tcpdump on my server, the outgoing packets originally have dst ip 192.168.1.125 (my client ip), but when they arrive to my computer, they all become 0.0.0.0.
Not just ssh, but same with http (tested using python -m http.server), the recurring phenomenon is that after the first few packets exchange, the destination ip suddenly becomes 0.0.0.0 if my client computer is connected to ROUTER 1 wifi.
Any idea what causes this to happen, and how should I fix it?
ROUTER 1:
Wan ip: Public ip
Lan ip: 192.168.1.1
Subnet mask: 255.255.255.0
Static routing rule: 192.168.2.0/24 via 192.168.1.2
ROUTER 2 (connected to ROUTER 1 lan port)
Wan ip: 192.168.1.2
Lan ip: 192.168.2.1
Subnet mask: 255.255.255.0
Firewall and NAT on ROUTER 2 are disabled using the webgui.
However, I get weird behaviour when trying to ssh a server (192.168.2.2) on the lan of ROUTER 2.
This is wireshark on my laptop monitoring ssh packet:
When my computer is connected to ROUTER 1 wifi (connection fails, dst ip 0.0.0.0):
When my computer is connected to ROUTER 2 wifi (connection success, dst ip is my computer ip):
I have also verified using tcpdump on my server, the outgoing packets originally have dst ip 192.168.1.125 (my client ip), but when they arrive to my computer, they all become 0.0.0.0.
Not just ssh, but same with http (tested using python -m http.server), the recurring phenomenon is that after the first few packets exchange, the destination ip suddenly becomes 0.0.0.0 if my client computer is connected to ROUTER 1 wifi.
Any idea what causes this to happen, and how should I fix it?