Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

A----NAT1----NAT2----B

I want to connect to B from A, for example ssh to B

I can do nothing to routers

How to do that?

share|improve this question

migrated from stackoverflow.com Mar 5 '13 at 5:44

This question came from our site for professional and enthusiast programmers.

    
You should be able to SSH from B to A, establishing an SSH tunnel, then SSH BACK to B from A. Only way I can think of without using port forwarding, but I'm not too tech savvy –  ekaj Mar 5 '13 at 6:42
    
You need a server somewhere on the Internet that both A and B can setup SSH tunnels (or VPN connections) to. Amazon will give you a free EC2 micro instance if nothing else. Hurricane Electric will give you free IPv6 tunnels which you can use like a VPN. –  David Schwartz Apr 10 '13 at 20:36

1 Answer 1

You can't. it's impossible (that's assuming that behind the NAT A and B are using private IP ranges (RFC1918)).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.