Posted: Wed Aug 10, 2016 17:42 Post subject: SSH tunnel - Wan disabled - DDWRT behind another router
My DDWRT is behind another router and I am having trouble setting it up as a ssh server for external access (remote putty access for tunneling).
In fact, I managed to make it work, but only with this configuration:
INTERNET
|
ROUTER1 (internet IP/192.168.0.1) (port 22 fowarded to 192.168.0.2)
| (lan port - wan port)
DDWRT (192.168.0.2/10.0.0.1) (dhcp enabled, ssh listening on port 22)
|
CLIENTS (10.0.0.X)
It works fine and I can connect via SSH to my DDWRT from work and bypass some stupid proxy restrictions. But the problem is that I need DDWRT clients to be in the same local net as router1. Something like the configuration below. But when I do it, I no longer can access the ssh server (DDWRT) remotely.
INTERNET
|
ROUTER1 (internet IP/192.168.0.1) (port 22 fowarded to 192.168.0.2)
| (lan port - lan port)
DDWRT (WAN DISABLED/192.168.0.2) (dhcp disabled, ssh listening on port 22)
|
CLIENTS (192.168.0.X)
Any help?? (router1 acts also as a Modem, therefore I can't replace it or install DDWRT on it)
Problem with bridge mode is that there are other clients connected to router1. That is in fact the reason I am trying to change the configuration of the network... I need all the clients from router1 and ddwrt to be on the same network, so they can communicate and access each other.
I feel stupid. It was just a bad configuration of the ssh server on DDWRT.
I had the right ssh port on the tab "Administration" but it turns out that there is another setting for the ssh port on the tab "Services", and I had overlooked that one, which is just the port for local access...
Now the tunnel is working fine. No need to mess with router1, only a simple port forward to 192.168.0.2.