LinuxQuestions.org
Help answer threads with 0 replies.
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 12-17-2011, 04:06 PM   #1
T0PAZ
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Routing certain ports to one Network Interface and all of the rest to another


I have 3 Network Interfaces (eth0, usb0, and wlan0). I would like to make all connections going to certain destination ports (i.e.: 80, 443, etc.) go through either eth0, or wlan0. While making all of the rest of my traffic/ports go through usb0.

Currently it just defaults all of my traffic to eth0, unless I disable eth0, in which case it defaults it all to usb0.

Last edited by T0PAZ; 12-17-2011 at 11:03 PM.
 
Old 12-18-2011, 02:40 AM   #2
War3zWad|0
Member
 
Registered: Sep 2011
Location: Houston, TX
Distribution: openSuSE, Fedora, CentOS, Debian,, and others
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by T0PAZ View Post
I have 3 Network Interfaces (eth0, usb0, and wlan0). I would like to make all connections going to certain destination ports (i.e.: 80, 443, etc.) go through either eth0, or wlan0. While making all of the rest of my traffic/ports go through usb0.

Currently it just defaults all of my traffic to eth0, unless I disable eth0, in which case it defaults it all to usb0.
You might find the following helpful. I know that what you want to do can be done, and I did have to do something similar for a Network Applications class but cannot remember all of the steps needed.

What you will want to make sure you have in your interface config files is that they are on at boot. You may find the following article useful as I referred to it while in class:

http://www.shorewall.net/traffic_shaping.htm

hope this helps get you pointed in the right direction
 
Old 12-18-2011, 07:37 AM   #3
amilo
Member
 
Registered: Oct 2011
Location: Nederland
Distribution: Debian, Centos, Ubuntu
Posts: 81

Rep: Reputation: Disabled
Here is a link for reading lartc.org/howto.
 
  


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
Routing Traffic to a Virtual Network Interface medized Linux - Networking 4 05-21-2010 04:12 AM
Routing ports to secondary network card vockleya Linux - Networking 24 01-22-2010 08:08 PM
ICS works, but the rest of my Network doesn't - Help! sstchur Linux - Networking 1 03-18-2004 08:40 AM
can't connect from my linux box to rest of network renman Linux - Networking 1 08-24-2003 03:29 PM
Can't access the rest of the network from behind gateway BrianG *BSD 1 05-02-2002 09:55 AM

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

All times are GMT -5. The time now is 08:10 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