Background
I have two routers, Router_A and Router_B.
Router_A LAN side IP address is 172.16.0.1
. Router_A has two clients, Computer_A (IP 172.16.0.11
) and Router_B (IP 172.16.0.2
).
Router_B WAN side IP address is 172.16.0.2
. Router_B LAN side IP address is 10.0.0.1
. Router_B has one client, FTP_Server_B (IP 10.0.0.2
).
In Router_B, the FTP ports (21, 990, and a range of predefined ports) are forwarded to 10.0.0.2
.
Static Routing (which does not work)
In Router_A, I have set Static Routing as follow:
Destination Address Subnet Mask Gateway Metric
10.0.0.0 255.255.255.0 172.16.0.2 15
As far as I understand, this static routing rule means, within Router_A 172.16.0.xxx
subnet, when a packet needs to go to 10.0.0.xxx
, it reaches Router_A. According to the rule, 172.16.0.2
knows about 10.0.0.xxx
addresses. So Router_A will forward the packet to 172.16.0.2
.
Problem
From Computer_A, I try to connect to the FTP_Server_B.
Using
ftp://172.16.0.2
, I can login to the FTP server. Then the server replies its passive mode address10.0.0.2
. At this point,10.0.0.2
is unreachable and the client cannot list the directories and files.Using
ftp://10.0.0.2
, I even cannot login. I even cannot reach the server.