[3636] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: PPP and two boxes???

daemon@ATHENA.MIT.EDU (Alan Cox)
Fri Jul 12 00:26:14 1996

From: alan@lxorguk.ukuu.org.uk (Alan Cox)
To: delznic@axess.net (Douglas F. Elznic)
Date: 	Wed, 10 Jul 1996 20:49:15 +0100 (BST)
Cc: alan@lxorguk.ukuu.org.uk, linux-net@vger.rutgers.edu,
        linux-ppp@vger.rutgers.edu
In-Reply-To: <2.2.32.19960701034233.006c7a88@205.247.138.1> from "Douglas F. Elznic" at Jun 30, 96 11:42:33 pm

> I want them to both be connected to the net. The big questions are how do I
> do it? What about dynamic ip? And which computer should I use for Yancy and
> Phineas. I have one high end and one low end machine...

Ideal world: Get a set of addresses from your ISP

Less ideal world (ie real one):

	Number the ethernet addresses of your two boxes 10.0.0.1 , 10.0.0.2 etc
[10.x.y.z is guaranteed never to be a real network address]. On the box
without the modem make the default route the box with the modem. On the box
with the modem its default route is via the PPP link to your ISP and it routes
10.x.y.z to ethernet. Say 10.0.0.1 is the box with PPP.

	Now configure IP masquerading on the box with the PPP link. What this
will do when set up is to cause this to occur

Initial send
10.0.0.2 -> www.somesite.net

PPP host sends
ppp-dynamic-addr ->www.somesite.net

PPP host receives
www.somesite.net -> ppp-dynamic-addr

It sends

www.somesite.net -> 10.0.0.2

In other words it rewrites the addresses in the packets. It doesnt work
for everything (eg some FTP cases, irc dcc, talk) but for almost everything.

There is a web page on it somewhere (www.indyram.com rings a bell) someone
else Im sure can remind me where that is

Alan



home help back first fref pref prev next nref lref last post