[NTLUG:Discuss] Sharing Internet Connection

Dan Carlson dmcarlsn at yahoo.com
Thu Dec 13 16:33:34 CST 2001


Start with the masquerade howto:

http://www.linuxdocs.org/HOWTOs/IP-Masquerade-HOWTO.html

The details will vary depending on whether you are running a 2.2 or 2.4
kernel and whether you are using ipchains or iptables.

I am running a 2.4 kernel with ipchains.  All it takes to masquerade my
local network is the following ipchains rule:

-A forward -s 192.168.1.0/24 -d 0/0 -j MASQ

In order for this to work, you do need to have ip forwarding turned on in
the kernel:

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

And the clients on your local network have to specify your server as their
gateway in their tcp/ip configurations.

Dan Carlson

----- Original Message -----
From: "Patrick Parks" <pparks at c1652034-e.croltn1.tx.home.com>
To: <discuss at ntlug.org>
Sent: Thursday, December 13, 2001 4:07 PM
Subject: [NTLUG:Discuss] Sharing Internet Connection


> Hello all, I am trying to set up internet sharing with two computers and
> having a problem. The server is a redhat 7.1 box with two nics. eth0
> goes to the internet, and works fine on the server. eth1 goes to the
> local network, and sees the local network fine. I am not sure where to
> go from here. I looked at www.linuxdocs.org, and the latest docs I could
> find on the subject are for RH 6.0. I went through them thoroughly, and
> am very confused :) the box I am trying to get to connect to the
> internet through the RH server is a win ME dual boot with Redhat 7.1.
> Can anyone steer me in the right direction to get this to work? If I did
> not give enough info, please let me know what you need. I currently have
> 3 ip's through ATT @home and would like to use just 1. thanks
>
>
> Patrick Parks
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>





More information about the Discuss mailing list