[1757] in linux-net channel archive

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

Re: Problem starting gated

daemon@ATHENA.MIT.EDU (Todd Fries)
Wed Jan 31 19:22:22 1996

To: ecloud@goodnet.com (Shawn Ruttledge)
Date: 	Wed, 31 Jan 1996 00:52:20 -0600 (CST)
Cc: sspoon@clemson.edu, linux-net@vger.rutgers.edu, grenoble@acoustic.com,
        billg@radix.net
In-Reply-To: <199601292015.NAA04494@goodguy.goodnet.com> from "Shawn Ruttledge" at Jan 29, 96 01:15:19 pm
From: tfries@umr.edu (Todd Fries)

> But if somehow I could get a packet back from that distant www server that 
> on the outside is addressed to the address my ISP assigned me for the PPP
> session, electron will get it, and then it needs some means of looking inside 
> the packet to see that the packet really ought to go to positron.
...
> electron monitors outgoing packets... It sees the
> packet coming back, and realizes it's probably for positron, so it re-writes
> the numeric address as positron's address and sends it over the ethernet
> (assuming packets on ethernet still have tcp addresses in them; if not, then
> I guess it doesn't need to re-write the destination numeric address, but
> just map to positron's ethernet address).

This is called ip_masquerading, and it has been working since 1.3.45.



/usr/local/bin/ipfw a m all from 192.168.0.3/24 to 0.0.0.0/0

With this statement, I am currently 'masquerading' any machine on my
network (currently a 286 w/dos and a pentium w/win95)  to internet.

LightHouse:# ipfw l a
Packets  Bytes  Proto        From                 To             Ports
  43097  11468K all   anywhere            131.151.253.0/24
  89785   6992K all   131.151.253.0/24    anywhere
   5408    314K all   whizzer.cch.net     anywhere
  37348  27662K all   anywhere            whizzer.cch.net
    835  33901  all   einstein.cch.net    lighthouse.cch.net
    788  64043  all   lighthouse.cch.net  einstein.cch.net
   5724    253K all   Christian_Campus_Ho lighthouse.cch.net
   8299   8814K all   lighthouse.cch.net  Christian_Campus_Ho
  35133   1672K all   131.151.253.0/24    rocket.cc.umr.edu
  18168   1600K all   rocket.cc.umr.edu   131.151.253.0/24
   1338    760K all   umr.edu             131.151.253.0/24
   1906 100605  all   131.151.253.0/24    umr.edu
LightHouse:#

It's been used abit since I started accounting, 2 days ago..

-- 
Todd Fries...tfries@umr.edu
http://www.cs.umr.edu/~tfries


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