[Gllug] Iptables routing via SSH tunnel

James Courtier-Dutton james.dutton at gmail.com
Wed Apr 18 11:14:56 UTC 2012


On 18 April 2012 01:19, Vipul Agarwal <vipul at nuttygeeks.com> wrote:
> Hi guys,
>
> I have two linux servers with root access and an external database server
> which is managed by someone else.
> Initially, only one of my server can access this external database server
> while the other can't due to IP restriction.
>
> I want to enable access to this external database server to my other linux
> server temporarily as it'll take few days to get the IP added to the
> firewall.
> 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.
>

Yes, ssh, use man page and read about the -L option.
It will make the remote database server look like it is on a local
port on the local PC.
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list