LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-12-2004, 03:56 PM   #1
scoobadiver
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,977
Blog Entries: 11

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


Cheers,
Tink
 
Old 01-12-2004, 04:58 PM   #3
alar
Member
 
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 www.freshmeat.org

<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.
Cheers,
alar

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
Mikhail_16
Member
 
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.
 
  


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
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 10:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration