Visit Jeremy's Blog.
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-20-2002, 09:55 PM   #1
Registered: Apr 2001
Posts: 117

Rep: Reputation: 15
Question RH Linux 7.3 (Gateway) and W2K server as client

Dear all,

I set up red hat 7.3 with 2 network cards: eth0 and eth1.

eth0 is connected to the ISP and I set the DNS as look at the DNS of your service provider with DHCP.

eth1's ip is Subnet mask

Surely, routed service is started.

ipchains -A forward -s -j MASQ

/etc/rc.d/init.d/network restart

echo 1 > /proc/sys/net/ipv4/ip_forward

In Window 2000 server, ip is subnet mask Gateway

From window machine, ping - ok
From red hat box, ping - ok

But, window machine cannot connect to the Internet.

What's wrong with my setting and how should I fix it?

Thanks in advance

Old 06-20-2002, 10:36 PM   #2
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
I found out that I need to use iptables instead of ipchains to configure the ip MASQ. However,

When I input iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

It showed an error: init_module: Device or resource busy

insmod iptables failed

iptables v1.2.5: can't initialize iptables table 'nat': iptables who?

When I typed modprobe iptable_nat, it showed "Can't locate such module"

When I typed /lib/modules/2.4.8-10/kernel/net/ipv4/netfilter/modprobe ip_tables

It showed init_module: Device or resource busy.

So, how can I fix it?

And do I need to remove the ipchains command preivously inserted? If so, how can I remove the old command?

Thanks for help.

Old 06-21-2002, 02:32 AM   #3
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Rep: Reputation: 38
I was just about to ask the same question but a few directories up.

I currently use mandy which has it's 'internet connection sharing' gui -based wizard, was wondering if redhat is more manual, interacting with iptables directly, like you explained up above. I would LOVE that. mandy gets the job done but I'd like to have more controll by setting it up from ground zero manually.

I will start looking into how to go about doing this and provide this thread with as many results as i can find before I got to bed.
Old 06-21-2002, 03:56 AM   #4
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
The IP masquerading HOWTO describes how to use iptables to set up your firewall. It also explains what you need to enable in your kernel if it isn't enabled already.

Example iptables firewall script: here

P.S.: If IE says it can't load the page, remove the slash it appended at the end of the url and press enter.

Last edited by Griffon26; 06-21-2002 at 03:58 AM.
Old 06-21-2002, 05:31 AM   #5
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
Previously, I set the ipchains rule. According to the HOWTO doc, No iptables modules can be loaded when in that mode.

So, could anyone tell me how to remove the ipchains mode previously configured?


Old 06-21-2002, 11:23 AM   #6
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
I fixed the iptable problem and thanks for all of kind help

Old 06-24-2002, 04:08 AM   #7
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Rep: Reputation: 15
I got one question for you. Did you install netfilter? As I know RH 7.2, we need to install it in order to get the NAT function.
Old 06-24-2002, 10:51 AM   #8
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15

I am a linux newbie and I have not heard netfilter. I did not install or configure it on 7.3 version.



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
Samba 3.0.2, Kerberos, Linux (RHAS3.0), Win2kAD - linux smb server with a w2k client irishb3 Linux - Networking 2 07-20-2004 08:05 AM
Client server model using linux server and w2k clients? siva_bhavani Linux - Networking 2 09-29-2003 03:35 PM
W2K Server and Linux/Win98 Client problem gurkha Linux - Networking 3 06-24-2003 10:08 AM
Samba Printing from w2k client to epson on linux box vance Linux - Networking 0 12-18-2001 05:10 PM
Sharing an internet connection with a Linux client through a 2000 server gateway thuan Linux - Networking 1 08-02-2001 01:55 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:22 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