I have setup a private network(Router2) within a network(class C) for TESTING purposes.


WAN-->Router1( Gateway>Lan-->Router2(Sonicwall)-->Lan(

I have setup so the devices behind Router2 can talk to the internet.

What I would like to do is setup a SSH Server behind Router 2 and connect to that SSH server from another WAN(Home)


WAN-->Router1( Gateway>Lan-->Router2(Sonicwall)-->Lan(> Server).

So how would I talk to the SSH Server from another WAN(Home) ? Router 1 port forward to Router2 IP? then do a Port forward Router 2 to SSH?


If you wish to use the standard SSH port for your SSH server, which is TCP port 22, then you need to forward port 22 from the WAN interface on router 1 to the external interface on router 2, i.e., the IP address on router 2 which faces router 1. Then router 2 needs to forward traffic destined for port 22 on its external interface to, which is the IP address you've configured for your SSH server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.