LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2010, 08:12 AM   #1
ronkymac
Member
 
Registered: Nov 2004
Location: Scotland
Distribution: Debian
Posts: 72

Rep: Reputation: 15
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
 
Old 10-06-2010, 01:37 PM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH tunnel over SSH tunnel vockleya Linux - Networking 6 01-22-2010 06:25 PM
Forwarding Yahoo IM using iptables after SSH tunnel kenevel Linux - Security 2 04-07-2009 05:31 AM
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 03:15 PM
SSH tunnel or Iptables forwarding jatro Linux - Networking 5 06-15-2005 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration