Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-01-2004, 02:13 PM   #1
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
please confirm NAT question.

My server has two nics

Eth0 = ISP connection
Eth1 = internal DHCP to home network (

Since another computer connected via dhcp got to the Internet, Then NAT must be working correctly right?

If I am flawed in this thinking, can you tell me how to make sure that NAT is working.

Thank you all tremedously, I now have the following working because of your help:

IPTABLES (assuming the above is correct)
Old 06-01-2004, 02:30 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
If there is no physical connection between the 2 ethernet cards other than the inside of the server then yes NAT is working.
Old 06-01-2004, 07:50 PM   #3
LQ Newbie
Registered: Jun 2003
Posts: 26

Rep: Reputation: 15
hi, i would like to know how you configure dhcp and how do you do to connect to the internet with both machines??

i am trying to do the same but with linux with a dial up connection and a win XP machine connecting to internet trhu linux

Any help??
Old 06-02-2004, 02:43 AM   #4
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Original Poster
Rep: Reputation: 46

I downloaded an IPTABLES script that was well documented, then edited the areas which allow different services. My edited firewall script is at

You'll have to change the ETH0 and Eth1 to your modem and network card, but like I said it is well documented.

Hope it helps


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
Nat Question keefaz Linux - Networking 3 08-25-2008 03:55 AM
NAT and DNS Question whohasit Linux - Networking 1 07-19-2005 10:29 PM
nat question gubak Linux - Networking 2 03-01-2005 06:54 AM
routing, nat question? pudhiyavan Linux - Networking 5 02-06-2005 01:35 PM
NAT newbie question Citizen Bleys Linux - Networking 4 09-26-2003 11:52 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:55 PM.

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
Open Source Consulting | Domain Registration