[3552] 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 (Hubert A. Bahr)
Mon Jul 1 01:11:19 1996

Date: 	Mon, 01 Jul 1996 00:50:37 +0000
From: "Hubert A. Bahr" <hab@ece.engr.ucf.edu>
To: "Douglas F. Elznic" <delznic@axess.net>
CC: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-net@vger.rutgers.edu,
        linux-ppp@vger.rutgers.edu

Douglas F. Elznic wrote:
> 
> At 08:08 PM 6/30/96 +0100, Alan Cox wrote:
> >> i saw a product for win 95 to use a inet connection over a modem on wo
> >> different computers on the client side? Does this exist for Linux?
> >
> >Just about no other operating system needs a magic product for this kind
> >of thing. Linux will also do masquerading so you can have a whole networkon
> >one IP address (handy for security).

It sounds easy just compile in Firewall , fowarding, masquerading have Firewall host
working with PPP and with local ethernet then use ipfwadm to set up masq....
I've tried but here are my results nothing seems to be leaving.
Both systems 486's running 2.0.0 Firewall using ipfwadm 2.2.
Fire wall sees outside world fine.  Local net sees firewall.  What am I missing.
any clues please

bash# route
Kernel routing table
Destination     Gateway         Genmask         Flags MSS    Window Use Iface
207.30.3.3      *               255.255.255.255 UH    1500   0        0 ppp0
132.170.199.0   *               255.255.255.0   U     1500   0        0 eth0
127.0.0.0       *               255.0.0.0       U     3584   0        8 lo
default         207.30.3.3      *               UG    1500   0       39 ppp0
bash# ipfwadm -Alen
IP accounting rules
 pkts bytes dir prot opt  ifname  ifaddress       source               destination
ports
   30  2520 in  all  ---- *       132.170.199.41  132.170.199.89       0.0.0.0/0
n/a
    0     0 out all  ---- *       132.170.199.41  132.170.199.89       0.0.0.0/0
n/a
    0     0 out all  ---- *       207.30.3.30     132.170.199.89       0.0.0.0/0
n/a
    0     0 in  all  ---- *       207.30.3.30     132.170.199.89       0.0.0.0/0
n/a
bash# ipfwadm -Flen
IP firewall forward rules, default policy: accept
 pkts bytes type  prot opt  tosa tosx ifname  ifaddress       source
destination          ports
 1347  113K acc/m all  ---- 0xFF 0x00 *       207.30.3.30     132.170.199.89       0.0.0.0/0
n/a
    0     0 acc/m all  ---- 0xFF 0x00 *       0.0.0.0         132.170.199.89       0.0.0.0/0
n/a
    0     0 acc/m all  ---- 0xFF 0x00 *       0.0.0.0         132.170.199.42       0.0.0.0/0
n/a
bash# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:589 errors:0 dropped:0 overruns:0
          TX packets:589 errors:0 dropped:0 overruns:0

eth0      Link encap:10Mbps Ethernet  HWaddr 00:40:33:21:84:9F
          inet addr:132.170.199.41  Bcast:132.170.199.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26395 errors:0 dropped:0 overruns:0
          TX packets:26439 errors:0 dropped:0 overruns:0
          Interrupt:12 Base address:0x340 

ppp0      Link encap:Point-Point Protocol  
          inet addr:207.30.3.30  P-t-P:207.30.3.3  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:4303 errors:0 dropped:0 overruns:0
          TX packets:4366 errors:0 dropped:0 overruns:0

bash# rlogin hbahrr
Last login: Sun Jun 30 23:25:54 from hbahr.bahr
Linux 2.0.0.
hbahrr:/# route -n
Kernel routing table
Destination     Gateway         Genmask         Flags MSS    Window Use Iface
132.170.199.0   *               255.255.255.0   U     1500   0        1 eth0
127.0.0.0       *               255.0.0.0       U     3584   0        1 lo
default         132.170.199.41  *               UG    1500   0        1 eth0
hbahrr:/# 

					Hubert


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