Posted: Tue May 28, 2019 19:39 Post subject: Reverse SSH tunneled HTTP traffic via lighttpd [RESOLVED]
Here's the scenario. There is a remote dd-wrt router behind NAT (not accessible from the Internet) and a local dd-wrt router with a public static ('white') IP. The remote router has a web server running on it and I need all the HTTP traffic to be reverse SHH tunneled to the local router and made available to browsers by lighttpd.
Here are the steps I take:
1. Run ssh -R 9999:localhost:8888 root@my_local_router_public_IP on the remote router (where 8888 is the web server port on the remote router and 9999 is a port on the local router)
2. Enable SSHd on the local router, enable access from WAN, enable TCP forwarding
3. Enable lighttpd on the local router on port 9999, double check it is running
Then I navigate to 192.168.1.1:9999 in my browser, but all I get is 404 Not Found errors.
What am I doing wrong please? Does lighttpd require some specific config for this scenario to let it know it shouldn't try to read index.html from the file system but only forward traffic from port 9999? Is it doable at all?
Any help will be much appreciated.
Last edited by danild on Thu May 30, 2019 7:18; edited 1 time in total