*BSD News Article 81766


Return to BSD News archive

Newsgroups: comp.unix.bsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!nntp.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.erols.net!newsfeed.internetmci.com!in1.uu.net!wolf.riga.lv!racoon.riga.lv!stoat!fairpay
From: fairpay@stoat.riga.lv (Fair pay)
Subject: kernel ppp configuration problems
Message-ID: <E01Dpp.M9F@racoon.riga.lv>
Sender: usenet@racoon.riga.lv (Usenet News Owner)
Organization: LvNet-Teleport, Riga, Latvia
X-Newsreader: TIN [version 1.2 PL2]
Date: Tue, 29 Oct 1996 12:08:12 GMT
Lines: 51

Hello,

the following configuration problems was met on local intranet, when it
was tried to configure server side PPP access.

We have a LAN with two segments with net address 194.8.30.0 and 194.8.32.0,
and want to setup ppp access to it through FreeBSD 2.1.0 machine.

Kernel ppp was configured ( added pseude-device ppp 4, remove tun
pseude-device and added GATEWAY to kernel configuration file). Then 
created /etc/ppp/options and added a new user, who has pppd as login 
shell.

/etc/ppp/options has the contents:
 194.8.30.241:194.8.30.240
 netmask 255.255.255.0
 modem
 crtscts
 passive

The routing table on FreeBSD the system, when connection is established looks like

localhost.auxili localhost.auxilium UH          0        0       lo0
194.8.30         link#2             UC          1        0
os2srv.auxilium. 0:20:af:43:0:65    UHLW        0       20       ed0   1060
angel.auxilium.l 0:c0:df:41:af:8    UHLW        3       23       lo0
irs.auxilium.lv. 194.8.30.241       UH          1       55      ppp0
194.8.30.255     link#2             UHLW        0        1
194.8.32         link#1             UC          1        0
angel.auxilium.l 0:c0:df:41:ad:d7   UHLW        1        2       lo0
194.8.32.255     link#1             UHLW        1        3

However it's not possible to access any machine on LAN from ppp client machine.
Also ppp client (194.8.30.240) is accessible only from the FreeBSD machine. 
But routing table seems fine, also ip.forwarding is ON in the kernel. What's
missed ?

Another problem is that ppp to FreeBSD works fine only for the first 
connection after FreeBSD system reboot. Any next connection establishes 
fine, but neither ping nor do anything else works over the link any next 
time connection is up. Why ?

Online handbook was studied carefully, but I did not like the idea
to let PPP own the modem completely, as other logons should be accepted
as well, so PPPD was set as login shell. Was this acceptable ?

Any help will be greatly appreciated.

Thanks in advance. Dima.
dima@irs.riga.lv