LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-23-2003, 01:01 PM   #1
AWyant
LQ Newbie
 
Registered: Sep 2003
Location: Paris, MO
Posts: 12

Rep: Reputation: 0
NAT, IPtables, Router, 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 on the set, LMK.
 
Old 09-24-2003, 04:02 AM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
Re: NAT, IPtables, Router, and Windoze

Quote:
Originally posted by AWyant
This could be a Newbie question, but it's also relevant here. I'll post it in both places just in case.

Double posting is against the rules.
 
Old 09-24-2003, 04:07 AM   #3
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
your setup seems a bit......wierd

you have the Linux box connected to the ISP...and to a port on the router?

your description of the setup is confusing. if you ahve it setup the way u explained....it makes sense that it doesnt work.

it should be 1 of 2 ways:


Code:
INTERNET
     |
     |
   Linux Box
     |
     |
    Linksys switch WAN port or UPLINK port
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     |                  |
     |                  |
     host1         host2



OR

   INTERNET
    |
    |
   Linksys Router WAN PORT
   ~~~~~~~~~~~~~~~~~~~~~~
    |               |
   Linux        Windows

Last edited by Robert0380; 09-24-2003 at 04:09 AM.
 
Old 09-24-2003, 08:39 AM   #4
AWyant
LQ Newbie
 
Registered: Sep 2003
Location: Paris, MO
Posts: 12

Original Poster
Rep: Reputation: 0
With the help of some others, I did make 1 change. I changed the DHCP on eth1 to a static IP address. But below is a "diagram" of hte set up
ISP
|
Linux eth0 (static IP)
Linux eth1 (static IP)
|
Linksys router
|
Windoze box (DHCP from router)

Hope that helps. Sorry about the double post. Missed that in the TOS. Won't do it again.
 
Old 09-24-2003, 10:23 AM   #5
Gilion
Member
 
Registered: Sep 2003
Location: Netherlands
Distribution: Debian 3.0
Posts: 78

Rep: Reputation: 15
Why are you using the router between the linux and windows box? I am connecting my linux box with a crosslink cable directly in my windows laptop, and it works fine in terms of ping. If a router is definetly needed that is important to me as well.

I am also starting to set up IP masquerade, so we might be having the same start up problems. I also started a thread about it a couple of hours ago.

Gilion
 
Old 09-24-2003, 12:04 PM   #6
AWyant
LQ Newbie
 
Registered: Sep 2003
Location: Paris, MO
Posts: 12

Original Poster
Rep: Reputation: 0
LMK what you find out. I've heard (and know from experience) that crossover cables are not all that reliable. Drops things too often to rely on for my work. I'm not having good luck so far with this.
 
Old 09-24-2003, 12:30 PM   #7
Gilion
Member
 
Registered: Sep 2003
Location: Netherlands
Distribution: Debian 3.0
Posts: 78

Rep: Reputation: 15
Since you are running red hat, I think the IP masquerade howto will cover your problem. It seems like ipchains and stuff is not set correctly, although your kernel modules are running. Meanwhile, I am having some difficulties in upgrading from 2.2.19 to a 2.4.18 kernel. I have to this due to some local vulnerabilities in the kernel and I get into some initrd trouble.

Gilion
 
  


Reply



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/router iptables script don_wombat Linux - Networking 9 09-16-2005 10:11 AM
iptables, nat, dhcp with adsl modem/router and wireless AP gjhicks Linux - Wireless Networking 8 05-16-2005 06:15 AM
Home Network Setup Help Linux Server running Windoze XP clients + ADSL router BeaverusIV Linux - Networking 10 04-22-2005 04:07 PM
IPTABLES : build NAT using IPTABLES joseph Linux - Networking 4 04-23-2004 05:08 AM
NAT, iptables, firewall, and Windoze AWyant Linux - Newbie 7 09-23-2003 04:30 PM

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

All times are GMT -5. The time now is 11:42 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
Open Source Consulting | Domain Registration