Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use a reverse SSH tunnel to get around firewalls' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use a reverse SSH tunnel to get around firewalls
Authored by: m@ on Feb 25, '05 10:57:26AM

I use the same trick to access my internal work mail directly at home because i cannot directly port forward on my work ssh login server.

First I ssh from Home to Work, ssh to another computer, then ssh with reverse tunneling back to home.

Then set mail.app to check localhost ports and not POP/SMTP/IMAP ports on mail server.

home> ssh work
work1> ssh work2
work2> ssh -R 2110:mail:110 home

More specifically the same trick is done from multiple users by port forwarding the returning ssh conections to their computers via a router.

work:X -- Y:router:23 -> 23:home1
via work2:usera> ssh -PX -R 2110:mail:110 router

work:Y -- Y:router:23 -> 23:home2
via work2:userb> ssh -PY -R 2110:mail:110 router

Note: ports X and Y had to chose to again pass the firewall



[ Reply to This | # ]