[1788] in linux-net channel archive
Re: Need help to connect to ISP!
daemon@ATHENA.MIT.EDU (Todd Fries)
Fri Feb 2 06:27:22 1996
To: sayer@imaginet.fr (Nicolas Sayer)
Date: Wed, 31 Jan 1996 21:22:54 +73800 (CST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <2.2.32.19960130192551.006d7038@mail.imaginet.fr> from "Nicolas Sayer" at Jan 30, 96 08:25:51 pm
From: tfries@umr.edu (Todd Fries)
> OK!, you see the physical setup, now the software!
I have a similar setup. 1 win95 machine, 1 286 dos machine, and my Linux
machine with the modem.
> I have no DNS setup, but on those two machine I set up the one of my
> service provider.
DNS is easy, if you only want a caching nameserver.
Here is my 'simple' setup.
-------/etc/named.boot----------
;
; boot file for name server
;
directory /var/named
; type domain source host/file backup file
cache . root.cache
forwarders 131.151.1.7 131.151.254.243
-------/var/named/root.cache----
; ---- Root cache dump ----
. IN NS A.ROOT-SERVERS.NET
. IN NS H.ROOT-SERVERS.NET
. IN NS B.ROOT-SERVERS.NET
. IN NS C.ROOT-SERVERS.NET
. IN NS D.ROOT-SERVERS.NET
. IN NS E.ROOT-SERVERS.NET
. IN NS I.ROOT-SERVERS.NET
. IN NS F.ROOT-SERVERS.NET
. IN NS G.ROOT-SERVERS.NET
A.ROOT-SERVERS.NET. 999999 IN A 198.41.0.4
H.ROOT-SERVERS.NET. 999999 IN A 128.63.2.53
B.ROOT-SERVERS.NET. 999999 IN A 128.9.0.107
C.ROOT-SERVERS.NET. 999999 IN A 192.33.4.12
D.ROOT-SERVERS.NET. 999999 IN A 128.8.10.90
E.ROOT-SERVERS.NET. 999999 IN A 192.203.230.10
I.ROOT-SERVERS.NET. 999999 IN A 192.36.148.17
F.ROOT-SERVERS.NET. 999999 IN A 39.13.229.241
G.ROOT-SERVERS.NET. 999999 IN A 192.112.36.4
----------------------------------
You then need only start named.
> Now, the linux box (mercury) had it's kernel recompiled with IP forwarding.
> THE PROBLEM:
> I want to give them access to Internet.
No problem. What you need to do is get a kernel 1.3.45 or more recent,
my favorite as of late is 1.3.57, as I've had an uptime of 2 days now after
compiling it, and 1.3.58 is buggy and 1.3.59 has several problems, including
no module support w/out a patch...so I await 1.3.60...
Anyway, compile the kernel with ip_forwarding and ip_masquerading. forwarding
is to forward packets if you are forwarding packets for machines that have
valid internet addresses. Masquerading is for forwarding packets where you
have the linux machine as the gateway on a local network that does not have
valid internet addresses. Masquerading has the effect of the ISP thinking
your machine is requesting alot of packets, and the machines on the local
network think they're on internet.
> Do I need anything more for forwarding those packets ???
Yes. You must get the net tools and compile a program called 'ipfw'.
When you get it compiled (I had to type 'gcc -o ipfw ipfw.c'), then
you will need to type:
ipfw a m all from 192.168.0.0/24 to 0.0.0.0/0
which says 'masquerade anything on this network to anywhere', which
uses 'anywhere' to mean wherever the packet would go if it originated
on your machine.
--
Todd Fries...tfries@umr.edu
http://www.cs.umr.edu/~tfries