How to connect (easily) two NATed boxes?
Hi!
I'd like to get ssh access to one box that's behind a firewall (nated) from a box that is in another network (nated, as well). Supposing I can use another box that's accessible to both boxes, is there a way I can use that other box to get my (nated) box to get ssh access to the other nated box? Is it possible to do it with SSH tunnels? Thanks in advance. PS I know I could set up a VPN, but would require using software on all the boxes and I'd really like to keep it on SSH. |
Quote:
Code:
// On the first machine |
The networks are separated. Can't just route between them (and I'm not the administrator, that's why I'm going to the "run something on the clients" solution).
|
I think I could set a ssh tunnel from both nated boxes to the public box.... but then is there one simple application I could use that could connect separate connections to 2 listening ports (or maybe one)? I mean, one application that could link together 2 client connections made on it?
|
Quote:
|
Thanks for replying, David.
I already figured out how to do what I want. I'll post a blog entry on the solution and I'll link it here.... so don't desperate. You'll see how probably by the weekend. |
Quote:
|
You're right, man.... I'm sorry I didn't link here.
http://maratux.blogspot.com/2009/06/...rom-nated.html |
Quote:
While the SSH port forwarding solution is straightforward, there are other ways to solve your problem. However, if you only had SSH access, and no administrator rights on any of the boxes, then you are probably limited to the solution you used. |
Oh, well.... I didn't want to get Remote Desktop access to a windows box (God forbid!). I wanted to get (and actually got) access to a SSH service... and that's plenty. :-D
|
Quote:
Quote:
|
That's just an example of what you can do. It's not necessarily that I wanted or needed to do that. As I said, the ultimate goal was to get SSH access to a GNU/Linux box... it's right at the beginning of the article.
|
Quote:
Code:
------------- ---------- Let me know if I missed something. |
The problem is, David, that Machine 2 is nated to internet too. So it's impossible to reach machine 2 from machine 3 (or 1, of course).
|
Quote:
Maybe I do not understand what you mean by "NATed". I am assuming that the firewalls are forwarding the SSH port to the "NATed" machines. If that assumption is incorrect, I would love to know exactly what is being forwarded. |
All times are GMT -5. The time now is 06:10 PM. |