On Fri, 2006-01-06 at 16:01 +0800, James wrote:
> Hi
> can anybody set me straight here please:
> 
> I'm (ssh'd) onto a host deep inside a 192.168.1.0 network. That host is 
> connected to an ADSL router over a seperate network (192.168.0.0)
> 
> I want to browse the ADSL router.
> 
> So i want to forward 192.168.0.1:80 (the router) to localhost:say5678
> 
> ie I browse localhost:5678 and get the router setup page.
> 
> I can browse the remote host with
> ssh -C -g -L 5678:192.168.1.40:80 tigger.ws
> 
> That forwards 192.168.1.40:80 to me at 5678. I want to go 1 step further 
> to the ADSL router at 192.168.0.1:80

The slightly tested answer:

ssh -L 5678:localhost:5678 tigger.ws
Then once you're logged in:
ssh -L 5678:192.168.0.1:80 192.168.1.40

Hopefully that's self-explanatory, because I don't think this one's
going to be any better. :-)

You're setting up one port forward between port 5678 on your local
machine, and 5678 on tigger.ws. Then you set up another port forward
from 5678 on tigger.ws to port 80 on 192.168.0.1, via 192.168.1.40.

G'luck!
-- 
Pete

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to