How to route specific addresses through a tunnel?
17
votes
7
answers
47462
views
There are certain websites/services which I can only access from the subnet on which my server is located (think of the typical intranet scenario). Is there a way to transparently route traffic that go to these addresses through an SSH tunnel?
Consider the following setup:
My laptop is connected on the home network. It cannot access services on ips X and Y directly. I have an SSH tunnel to a server which is on a subnet that can actually access these services.
Can I somehow automatically encapsulate all the traffic to the subnets of X and Y to go through this tunnel, without having to run the entire VPN solution that would send all my traffic through the server? In other words: all traffic that goes to any other subnet should still go directly from the laptop, without passing through the server (using the tunnel).
Asked by Ruben Vermeersch
(373 rep)
Aug 11, 2010, 09:06 PM
Last activity: Jan 19, 2024, 10:04 AM
Last activity: Jan 19, 2024, 10:04 AM