LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-19-2005, 11:46 PM   #1
spastikman
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
2x DSL. Route packets dependending on remote port.


Hi !

I have a problem.
I have a lanhouse in Portugal with 2 dsl lines connected to one server with three NICs.

eth0 -> DSL 4Mbits -> 192.168.2.1
eth1 -> DSL 8Mbits -> 192.168.3.1
eth2 -> Local Intranet -> 192.168.1.1 (server IP)

What I want to do, is force all trafic from intranet with destination ports 1-25000;40000-65535, to go through eth1 gateway.
All the remaining destination ports (normaly the ones used by CS), to go through eth0.

This way I would avoid players from lagging because of downloads, etc etc etc.


Can anyone give me a hint how to do it ?

Thanks.

Last edited by spastikman; 08-20-2005 at 08:32 AM.
 
Old 08-20-2005, 08:32 AM   #2
spastikman
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Original Poster
Rep: Reputation: 0
any ideia ?
 
Old 08-20-2005, 08:52 AM   #3
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Está a usar algum software de firewall ou apenas a ditribuição pura e simsples?
 
Old 08-20-2005, 12:23 PM   #4
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Re: 2x DSL. Route packets dependending on remote port.

Quote:
Originally posted by spastikman
Hi !

I have a problem.
I have a lanhouse in Portugal with 2 dsl lines connected to one server with three NICs.

eth0 -> DSL 4Mbits -> 192.168.2.1
eth1 -> DSL 8Mbits -> 192.168.3.1
eth2 -> Local Intranet -> 192.168.1.1 (server IP)

What I want to do, is force all trafic from intranet with destination ports 1-25000;40000-65535, to go through eth1 gateway.
All the remaining destination ports (normaly the ones used by CS), to go through eth0.

This way I would avoid players from lagging because of downloads, etc etc etc.


Can anyone give me a hint how to do it ?

Thanks.
If you are using some sort of Firewall front-end software, you may want to check and see if that does what you want first. Otherwise, check out "iptables". I think it will let you do what you want to do.

EDIT: Do a "$man iptables" and check out the "TARGET EXTENSIONS" section and look for the "ROUTE" extension. This does exactly what you want to do. Just match on the ports you want to redirect, and then call the ROUTE target to send them to the NIC you want.

Last edited by carl.waldbieser; 08-20-2005 at 12:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Is it not possible to route incomming port to another external port? ziggie216 Linux - Software 5 12-03-2005 06:16 PM
route locally generated traffic to ip:port to localhost:port maenho Linux - Software 2 03-11-2005 04:08 AM
logging to a remote syslog server is dropping packets draeician73 Linux - Security 1 10-20-2004 06:19 PM
Route packets between cable modem and another router k1mgy Linux - Networking 0 08-01-2004 07:22 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 03:48 PM

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

All times are GMT -5. The time now is 08:21 AM.

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