LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-23-2003, 02:03 PM   #1
AWyant
LQ Newbie
 
Registered: Sep 2003
Location: Paris, MO
Posts: 12

Rep: Reputation: 0
NAT, iptables, firewall, and Windoze


This could be a Newbie question, but it's also relevant here. I'll post it in both places just in case. I'm setting a RH9 box to act as a buffer for my Internet for my work. Here is my setup:
RH9
eth0 (static IP conntected to ISP)
eth1 (DHCP assigned from Linksys Router)
iptables forwarding, firewall, and nat all enabled and running (according to the directions set out in RH9 Bible)

Router

Windoze
NIC (DHCP with gateway of eth0's IP)

I can ping back and forth between the two machines. However, the Windoze machine will not see or connect to the Internet. I am not sharing files, just passing through the Internet (and of course, email, AIM, etc...) I've seen the answer in these forums before, but can't seem to find it right now when I need it. Your help is appreciated.

If you need further info about my config, LMK
 
Old 09-23-2003, 02:37 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Did you set your default gateway of the windows machine to point to the linux box?
 
Old 09-23-2003, 03:00 PM   #3
AWyant
LQ Newbie
 
Registered: Sep 2003
Location: Paris, MO
Posts: 12

Original Poster
Rep: Reputation: 0
I've set the gateway on the windoze box as the IP of eth0 (Internet NIC, which is my ISP IP). Should that be the IP of eth1 (the LAN DHCP IP)?

To clarify:

Internet (eth0)
xxx.xxx.xxx.185-IP
255.xxx.xxx.192-subnet
xxx.xxx.xxx.129-gateway
xxx.xxx.xxx.19-DNS1
xxx.xxx.xxx.21-DNS2

LAN (eth1)
10.1.10.101-DHCP assigned by LInksys router
255.255.255.0-subnet assigned by router

Windoze (NIC)
10.1.10.100-DHCP assigned by Linksys router
255.255.255.0-subnet assigned by router
xxx.xxx.xxx.185-gateway manually assigned (should this be 10.1.10.101?)
xxx.xxx.xxx.19-DNS1 manually assigned
xxx.xxx.xxx.21-DNS2 manually assigned


Thanks again
 
Old 09-23-2003, 03:04 PM   #4
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
On windows have you setup nameservers?

Your gateway should be the IP of the computer connection to the net. Maybe you gateway should be eth1?
 
Old 09-23-2003, 03:28 PM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Your gateway should be set to the IP address of the internal NIC (eth1). The packets need to be sent there so that the Linux box can route them through to eth0 and out to the internet.

Also set the eth1 to a static IP address. You don't want that adress to change.
 
Old 09-23-2003, 03:51 PM   #6
AWyant
LQ Newbie
 
Registered: Sep 2003
Location: Paris, MO
Posts: 12

Original Poster
Rep: Reputation: 0
I changed the gateway on the Win machine to 10.1.10.101, as well as made the IP on the eth1 a static IP. However, that still did not solve my problem. Any other suggetions? I'm more than willing to try.
 
Old 09-23-2003, 03:57 PM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
My guess would be that NAT is not working. Go to freshmeat and download arno-iptable and try that. It is the easiest was to get an iptables firewall going that i have found.
 
Old 09-23-2003, 05:30 PM   #8
AWyant
LQ Newbie
 
Registered: Sep 2003
Location: Paris, MO
Posts: 12

Original Poster
Rep: Reputation: 0
I'll grab that and try it. Hopefully it'll help. Inbetween all the teaking, rebooting, and other such things...I've managed to make a mess out of my Internet connection on the Linux machine. Haven't really changed all that much, and I've undone everything I did...so I don't know when or if this little escapade will actually end up working.

Thanks again for the help
 
  


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, iptables, forwading, firewall w3it Linux - Newbie 7 11-17-2005 03:15 AM
Iptables,firewall,nat,gnutella fortezza Linux - Security 1 05-15-2004 01:16 AM
NAT, IPtables, Router, and Windoze AWyant Linux - Networking 6 09-24-2003 01:30 PM
Iptables firewall with 4 NICs and nat jod Linux - Security 7 08-06-2003 06:14 AM
IPTABLES, NAT & Firewall dsylvester Slackware 1 02-15-2003 08:14 PM


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