LinuxQuestions.org
Review your favorite Linux distribution.
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 03-11-2009, 10:01 AM   #1
jessicaK
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Rep: Reputation: 15
Newbie routing question


I have multiple NICs on a RHEL 5.1 system. I want to force all port 80/443 traffic through eth1 and leave the remaining routes as is. I am really not sure how to go about doing this. I have 4 nics on 4 different vlans.

route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.20.21.0 * 255.255.255.0 U 0 0 0 eth2
192.168.21.0 * 255.255.255.0 U 0 0 0 eth1
172.20.20.0 * 255.255.255.0 U 0 0 0 eth3
192.168.20.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth3
default 192.168.20.3 0.0.0.0 UG 0 0 0 eth0

I can't change the default gateway, so I am not sure what would be better, IPtables or another avenue? If I am not clear please let me know since I am not totally sure what I am asking.

Thanks
 
Old 03-11-2009, 10:06 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by jessicaK
I want to force all port 80/443 traffic through eth1
Inbound or outbound?
 
Old 03-12-2009, 07:08 AM   #3
jessicaK
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Sorry I didn't include that, outbound. I am trying ultimately to be able to do the RHN updates.

Quote:
Originally Posted by anomie View Post
Inbound or outbound?
 
Old 03-17-2009, 02:45 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
What you probably want is port-based routing with iproute2. (This is non-trivial to set up for a newbie.) Cruise the 'net for some information, and post back with progress/questions. I don't have time to set up a test case at the moment.
 
Old 03-18-2009, 10:17 AM   #5
jessicaK
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
I was able to actually resolve it by creating a route in the routing table straight to the RHN which is all I needed. I appreciate all your help though! I had no idea I could do routes outside of my internal NIC routes. Always love learning something new

Thanks again!
 
  


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 Tables - NEWBIE - How Tos hornickr Linux - Networking 1 07-22-2006 09:33 AM
Newbie questions on fw & routing. fipeso Linux - Networking 2 04-25-2005 04:25 PM
Help newbie for routing.... Lamotta Linux - Newbie 2 04-04-2004 07:31 AM
NewBie Q: Force Routing Unnamed Linux - Networking 0 10-08-2003 03:00 AM
newbie problem with routing to host?? lucastic Linux - Networking 5 08-03-2003 09:12 PM

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

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