[Gllug] Iptables routing via SSH tunnel
tethys at gmail.com
Wed Apr 18 10:51:24 UTC 2012
On Wed, Apr 18, 2012 at 1:19 AM, Vipul Agarwal <vipul at nuttygeeks.com> 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.
"Java is a DSL for taking large XML files and converting them to stack
traces" -- Bulat Shakirzyanov
Gllug mailing list - Gllug at gllug.org.uk
More information about the GLLUG