Well so far you're doing ok.

To purposely oversimplify. Imagine that the connection to your ISP is yet
another "network device" (dev ppp). It will get assigned it's own IP
addressed, either statically, or dynamically changing each time you log in.

The IP's you've CORRECTLY choosen for your internal lan, use addresses which
are NOT sent out (or recognized) by the internet. This is good.

What you need to do is

1) Get your linux box connected to the ISP. Make sure it can ping address
via your modem, that are "out" on the internet.

2) Get your linux box to either act as a resolver (DNS) or forward
resolution requests out to your ISP's DNS in turn.

3) Configure Masquerading to work. The latter can be done quite simply
(abeit at the expense of poor security) with a simple one line command!

Linux is configured to DISABLE routing of your 192.168.0.0 packets... then
Masq is told that whenever it sees 192.168.0.0 packets with destinations
"outside" your local lan, it is to "relabel" those packets using the IP's
assigned to the PPP link and forward them up.

Likewise the reverse is true for inbound packets.

So, you ask, how do I do this?

Start with step 1 and 2 above. Linuxconf is your friend. It will simplify
getting the first part set up.

Get this going FIRST. Then make sure you can surf the web from Netscape in
X.

Once this all works, do a little reading in /usr/doc about masq.

You'll find a simple example there that is exactly what you are looking for.

That's all you need.

-JMS

-----Original Message-----
From: F.C. Barnard [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 19, 1999 1:49 PM
To: [EMAIL PROTECTED]
Subject: IP masquerading


Hi

Can anyone help me or explain to me how can get my two computers on the
netLet me tell you my setup.

I am running Redhat 6.0
I have a linux box running to which I have a modem connected. . I can get my
linux machine on the net using kppp That's no problem.  I have assigned the
following IP's to my computer
IP address 192.168.0.1
Network 192.168.0.0
Netmask 255.255.255.0
Broadcast 192.168.0.255

Now, on my other computer I am running Windows 98 SE
I have assigned the following to it
IP address 192.168.0.2
Subnet 255.255.255.0
Gateway 192.168.0.1

When I have set it up like this I can ping my Windows machine from my linux
box and I can ping and telnet from my windows machine to my linux box.

Now how can I set up my machine so that both are on the internet. I can't
browse or use any other appz from the windows machine when I am on the net.
How do I go about fixing this.

Can this IP masquerading be done my netcfg? If so how do I do this. If I
can't do it that way how do I go about it. I throught I knew computers. I
suppose I was mistaken hehehe.

Thanks for any help.

F.C. Barnard


--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to