The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Routing help needed... bzamora UNIX for Advanced & Expert Users 6 12-12-2007 01:05 PM
linux routing youmna Linux 1 10-29-2005 11:09 AM
Linux Routing Help xTHESEUSx Linux 1 02-22-2005 11:28 AM
Setting Up Routing In Linux Redhat 9 Help xTHESEUSx Linux 5 02-20-2005 05:51 PM
NAT Routing in linux salhoub Linux 1 05-16-2004 06:06 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-08-2007
Registered User
 

Join Date: Sep 2005
Location: Portugal
Posts: 20
Routing in Linux

Hello All,
I know it's a tricky probably stupid question but I'm stuck....

Is there any way to route different protocols through different eth cards for the same destination in Linux? With route add or something like it?

For instance:
FTP to/from 192.168.1.1 goes through eth0 - gw2
telnet to/from 192.168.1.1 goes through eth1 - gw3

The problem is that I've a route to 192.168.1.1 through gw2 and iptables that allow this, FTP only in/out the eth0. But for telnet I want to go through gw3...

It's not a problem with the iptables, since I disabled and I got the same problem.
The telnet packet goes to eth1 but the server doesn't answers to the same eth since the destination of the telnet packet it's in the network from et1.

Any idea?

Thanks in advanced
Reply With Quote
Forum Sponsor
  #2  
Old 06-11-2007
Registered User
 

Join Date: Feb 2006
Location: Jakarta, Indonesia
Posts: 97
hi pmpx,

you need more than routing since you are targeting an application layer.
for the simplicity -- you can use iptables to drop incoming FTP on eth1, and telnet on eth0 - that will force the system to route FTP to your eth0, and vice versa. the remote end will reply back exactly to them - unless there is a PBR also.

or you can use iptables redirection.

quote :
"The telnet packet goes to eth1 but the server doesn't answers to the same eth since the destination of the telnet packet it's in the network from et1."

that will not likely. probably the remote end doesnt permit telnet.


HTH,
Cheers.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0