How to remap IPs visible from local machine to IPs visible from a machine I have SSH access to?

Posted by gooli on Server Fault See other posts from Server Fault or by gooli
Published on 2010-05-06T05:11:20Z Indexed on 2010/05/06 5:18 UTC
Read the original article Hit count: 395

I'm so far out of my depth I don't even know what to google for.

There's a server I can connect to via SSH. Via that server I can access other server on its subnet via SSH. What I want to do is be able to access the machines that server has access to directly. Say the server IP is 192.168.7.7 and is the only one in the 192.168.x.x range I have access to. I'd like to configure things in such a way that when I to access say 192.168.7.100 on my machine, the connection will go through an SSH tunnel I open to 192.168.7.7 and out to 192.168.7.100. I would like this to work for any port if at all possible.

I know I can set an HTTP proxy and even a SOCKS proxy, but I'm wondering is there is a way to actually remap some of the IP my machine sees to IP only visible from the remote machine.

What would this configuration be called? IS this NAT, VPN, IP2IP or something else? How can I set up this on a Windows client box that connects via SSH to a Linux box? Sounds to me like I need to set up some kind of filtering on the network driver or possibly a virtual NIC, but I'm not sure where to go next.

© Server Fault or respective owner

Related posts about network

Related posts about tunnel