LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-01-2011, 11:15 PM   #1
b1r2s
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Rep: Reputation: 0
Multi-homed FW routing issues


Hello all,

Forgive me if this has been answered before. I have looked through the forums and google and have found similar posts, but nothing quite as detailed as what I'm trying to do.

I have a firewall running OpenSuse 11.3, with 6 ethernet interfaces (3 external/dhcp, 1 DMZ and 2 internal). I am trying to configure the 3 external interfaces to different dns names, using eth0 as the default connection, but being able to send packets on demand out eth1 and eth2.

I've build a few different iterations of linux firewalls, and have a basic understanding of how iptables work, but I am totally failing when it comes to being able to route packets out of the correct nic when needed. I've been testing with curl --interface ethX whichever nic is set to primary works every time, all of the others timeout, clearly routing issue.

I have tried adding a default route using ip route add default dev ethX metric x, but that doesn't seem to work. Can anyone help point me in the right direction?

Thank you.
 
Old 03-02-2011, 01:27 PM   #2
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
Hey b1r2s,
When you say you are looking to assign the 3 external interfaces separate DNS names, how did you plan going about that? please be specific about what functionality you are attempting to gain. The same goes for sending data out a specific interface. That is certainly doable, but to what end? Our solutions may vary based on what exactly you are attempting to do, so lets get some details =)
 
Old 03-02-2011, 05:12 PM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Look into the iproute2 suite of utilities, should be installed by default. iproute2 does advanced routing, you wil lthen also want to look up redundant routers HO-TO
 
Old 03-03-2011, 03:09 PM   #4
b1r2s
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for your replies. I was able to figure out how to overcome my issue using iproute2 and setting up tables for each nic. So for now, I think I'm all set.
 
  


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
[SOLVED] Routing across a multi-homed router from a openvpn tunnel: ping works ssh doesn't. skyanvil Linux - Networking 1 08-17-2010 10:26 AM
Preventing asynchronous routing on multi-homed server BoarderX Linux - Networking 1 01-29-2009 12:56 PM
Multi homed gateway nukenstien Linux - Networking 4 02-10-2005 10:07 AM
Linux Routing to Multi-Homed Host MightyCranium Linux - Networking 0 03-16-2004 05:14 PM
Proper Solution for Multi-Homed IP ytene Mandriva 0 08-25-2003 06:14 AM

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

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