Re: Iptables routing via SSH tunnel

Tethys <[email protected]>
Newsgroups gmane.user-groups.linux.london.gllug
Message-ID <CAB4ZOpDP9p5R457cPK4Kv+PoaEfsjoJY0i-qFriSvHSpby9xDw@mail.gmail.com>
On Wed, Apr 18, 2012 at 1:19 AM, Vipul Agarwal <[email protected]> wrote:

> I think this can be done using a SSH tunnel. Please help me writing the
> correct iptables rules to route all the traffic to a specific IP/port via
> the SSH tunnel.

You can do this with policy routing. Create a new routing table with a
single default route via your ssh tunnel. Then add a policy rule to
tell Linux to use that table when the appropriate criteria are met.

Tet

-- 
"Java is a DSL for taking large XML files and converting them to stack
traces" -- Bulat Shakirzyanov
--
Gllug mailing list  -  [email protected]
http://lists.gllug.org.uk/mailman/listinfo/gllug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.