![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |