LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IPTABLES/SSH Tunnel with 2Nic's (https://www.linuxquestions.org/questions/linux-networking-3/iptables-ssh-tunnel-with-2nics-836525/)

ronkymac 10-06-2010 08:12 AM

IPTABLES/SSH Tunnel with 2Nic's
 
Hello,

I've been running a DebLenny system on the network which acts as the local gateway.

It has 2 network cards and traffic is directed as follows:

Code:

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

However, I'd now like to put all the outgoing traffic through a remote system which will further handle the outgoing data (Squid, etc) via the PPPTP device.

What would be the most efficient way by which I could achieve this?

-R

janhe 10-06-2010 01:37 PM

If all you need is that all the traffic goes to the machine (no fancy extra NATting, ...), then just delete the default routes and add a new default route pointing to that machine.


All times are GMT -5. The time now is 05:10 PM.