Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-12-2004, 03:56 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
How do I connect dual nics in firewall to the gateway?

I have Red Hat 7.3 and I have dual nics. The external nic is connected to a linksys router and is getting the IP via DHCP from the linksys device.

I have another nic card with a hard coded IP address from my network. I have setup static routes from each nic. The external nic route has a desination of the linksys gateway. The internal nic route destination is the internal nic IP (which is reserved). From any workstation I can ping each nic card IP, but I can not ping the linksys gateway IP, nor can I ping any address on the internet.

What am I missing? Did I miss configure the nic cards?

Thanks in advance

newbie scoobadiver.
Old 01-12-2004, 04:50 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You'll have to do NAT between the two interfaces,
I'd think ... go to and have a look
at the Advanced-Routing-HowTo ... also have a look
man iptables

Old 01-12-2004, 04:58 PM   #3
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
My first question is who are you trying to ping?
You probably know what you are doing, but just in case
are you trying a site that does accept ping?

I used to use netscape but seeing as that doesn't work anymore,
now I use ping

<quote>The external nic is connected to a linksys router and is getting the IP via DHCP from the linksys device. </quote>

If that is working, this is all I can suggest.

Oh yes, and those iptables. New to me too. Just ran in to it recently.
Never really bothered about it before...

Last edited by alar; 01-12-2004 at 05:00 PM.
Old 01-12-2004, 05:03 PM   #4
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
iptables are cool, i did a presentation on them for my lug, since no one knew anything about them (even me). After a fairly extensive read through the documentation, i know that its possible to do full routing via just iptables, which is cool, btw.


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
Linux Gateway with 3 NICs pin_bk Linux - Networking 16 03-27-2005 09:57 AM
Linux Gateway+Two NICS+Router+HOWTO pin_bk Linux - Networking 11 09-07-2004 12:29 PM
can't get nics working, on gateway evilchild Slackware 3 03-28-2004 07:18 PM
LAN machines unable to connect to Internet through (firewall on )gateway nishi_k_79 Linux - Security 1 11-13-2003 01:30 PM
Setting up Redhat squid gateway with dual NICs wrathyimp Linux - Networking 13 06-12-2003 11:54 PM

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration