LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-01-2004, 03:13 PM   #1
musicman_ace
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 (192.168.1.1)

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:

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

Rep: Reputation: 66
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, 08:50 PM   #3
Zig
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, 03:43 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Original Poster
Rep: Reputation: 46
IPTABLES

I downloaded an IPTABLES script that was well documented, then edited the areas which allow different services. My edited firewall script is at aldebaran.tekinteractive.net/~acarnahan/www/files/my_firewall.sh

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
 
  


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

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

All times are GMT -5. The time now is 07:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration