Re: Iptables routing via SSH tunnel

James Courtier-Dutton <[email protected]>
Newsgroups gmane.user-groups.linux.london.gllug
Message-ID <CAAMvbhG9vQ=nAS0g5z02CLXeq3+JMb1oYuMiY_Fu9VUtkqT-4A@mail.gmail.com>
On 18 April 2012 01:19, Vipul Agarwal <[email protected]> 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  -  [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.