I need to use ssh between two machines in different networks. I think I have done all right, but obviously not. So I need some help.
The network has the following schema:
Internet | | ROUTER/SWITCH ( Zyxel P-660HW-D1 ) | |-> public ip xxx.xxx.xxx.xxx ( does not mean) | |-> lan ip 192.168.1.1/240 (28) | | | |---------- Centos Server | |-> lan ip 192.168.1.3/255.255.255.240 | |-> iptables tuned to accept ssh from 192.168.0.0/29 on port 5119 | | NEUTRAL ROUTER/SWITCH (Linksys WRT54GL ) Corporate network | |-> public ip 192.168.1.2 | |-> lan ip's 192.168.0.1/255.255.255.248 (29) | | |------------| | PC-1 |------------> I am here |------------| | |-> ip 192.168.0.6
I am connected to PC-1 from wan. Having read about the routers, I have done the following changes:
Linksys WRT54GL * Under advanced routing tab, created a new route with the following settings: Destination Lan IP 192.168.1.3 Subnet Mask 255.255.255.248 Default gateway 192.168.1.1 Interface: WAN Zyxel P-660HW-D1 * Under telnet, configure a new filter with the following settings: Filter TCP/IP rule Ip source route NO Destination Ip addr: 0.0.0.0 ip netmask 255.255.255.240 Port #= 5119 Port # Comp = Equal Source Ip addr: 0.0.0.0 ip netmask 255.255.255.248 Port #= 5119 Port # Comp = Equal TCP Estab = Yes
There is no firewall or other software issues.
I am trying to connect to Centos Server from PC-1 using 192.168.1.3 ip but I can´t.
Can you tell me what's is wrong ?
[RESOLVED ] The issue was the linksys route was not pointing to other router public ip.
So, this is the correct configuration:
Linksys WRT54GL * Under advanced routing tab, created a new route with the following settings: ... Default gateway 192.168.1.2 ...