Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 1998 13:50:14 +0300
From:      Oleg Yurkovsky <oleg@allonge.viaduk.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Problem with server ppp on FreeBSD-2.2.5
Message-ID:  <354705E5.C93181E8@allonge.viaduk.net>

next in thread | raw e-mail | index | archive | help
Hello.

I built FreeBSD access server. I'm using incoming ppp connection &
ijppp.
I'm using getty to validate login/password pair from user,
and then I starting my script at /etc/ppp/ppp-shell for logged users.
All networking is OK, the problem begin after disconnecting client from
access server.
I'm usinng Windows95 PPP. When I do disconnect  by pressing Cancel
button on MSW Dialup Dialog,
all is OK. But if I simply power of my client modem, or disconnect phone
line, ppp process for this
user locks. It never exit and lock my line & tun interface.

This problem may be ppp error or wrong configuration.

By the way, I obtain result like this in the following way:
telnet to localhost, login under one of ppp user. After that, telnet
session automatically closed,
and ppp process loops forever. It can't to exit.

I tried to compile & install ppp from FreeBSD-current, but unsuccesful.
==============================================================
cc -O -Wall   -c ip.c
In file included from ip.c:30:
/usr/include/net/if_tun.h:37: field `tun_rsel' has incomplete type
/usr/include/net/if_tun.h:38: field `tun_wsel' has incomplete type
*** Error code 1
==============================================================

Tell me if you have any ideas.

I send you my kernel configuration, ppp.conf, ppp.log.

Thank for attention.
Bye.

This is `uname -a`.
==============================================================
FreeBSD gatekeeper.allonge.com 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0:
Fri Apr 24 10:55:48 EEST 1998
root@gatekeeper.allonge.com:/usr/src/sys/compile/GATEKEEPER  i386
==============================================================

This is configuration of my kernel.
==============================================================
#

machine  "i386"
cpu  "I586_CPU"
cpu  "I686_CPU"
ident  GATEKEEPER
maxusers 64

options  MATH_EMULATE  #Support for x87 emulation
options  INET   #InterNETworking
options  IPX   #IPX/SPX communications protocols
options  IPXIP   #IPX in IP encapsulation (not available)
options  IPTUNNEL  #IP in IPX encapsulation (not available)
options  FFS   #Berkeley Fast Filesystem
options  NFS   #Network Filesystem
options  MSDOSFS   #MSDOS Filesystem
options  "CD9660"  #ISO 9660 Filesystem
options  PROCFS   #Process filesystem
options  "EXT2FS"                #Support for EXT2FS
options  "COMPAT_43"  #Compatible with BSD 4.3 [KEEP THIS!]
options  SCSI_DELAY=15  #Be pessimistic about Joe SCSI device
options  BOUNCE_BUFFERS  #include support for DMA bounce buffers
options  UCONSOLE  #Allow users to grab the console
options  FAILSAFE  #Be conservative
options  USERCONFIG  #boot -c editor
options  VISUAL_USERCONFIG #visual boot -c editor

options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #print information about dropped
packets
options  "IPFIREWALL_VERBOSE_LIMIT=100" #limit verbosity
options  IPDIVERT  #divert sockets
options  COM_MULTIPORT  #code for some cards with shared IRQs

config  kernel root on wd0

controller isa0
controller eisa0
controller pci0

controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk  fd0 at fdc0 drive 0

#
# Each drive has a 16 bit flags value defined:
# The low 8 bits are the maximum value for the multi-sector I/O,
# where 0xff defaults to the maximum that the drive can handle.
# The high bit of the 16 bit flags (0x8000) allows probing for
# 32 bit transfers.
#
controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0x80ff80ff vector
wdintr
disk  wd0 at wdc0 drive 0
disk  wd1 at wdc0 drive 1

#
# Not used now
#
#controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr
#disk  wd2 at wdc1 drive 0
#disk  wd3 at wdc1 drive 1

options  ATAPI  #Enable ATAPI support for IDE bus
options  ATAPI_STATIC #Don't do it as an LKM
#device  wcd0 #IDE CD-ROM

#
# Options for `wdc':
#
# CMD640 enables serializing access to primary and secondary channel
# of the CMD640B IDE Chip. The serializing will only take place
# if this option is set *and* the chip is probed by the pci-system.
#
options         "CMD640" #Enable work around for CMD640 h/w bug

# syscons is the default console driver, resembling an SCO console
device  sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
options  MAXCONS=16  # number of virtual consoles
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device  vt0 at isa? port "IO_KBD" tty irq 1 vector pcrint
#options  XSERVER   # support for X server
#options  FAT_CURSOR  # start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT
lines
#options  PCVT_SCANSET=2  # IBM keyboards are non-std

# Mandatory, don't remove
device  npx0 at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr

device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr
device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr

# MOXA multiport card

device sio2 at isa? port 0x180 tty flags 0x0585
device sio3 at isa? port 0x188 tty flags 0x0585
device sio4 at isa? port 0x190 tty flags 0x0585
device sio5 at isa? port 0x198 tty flags 0x0585 irq 5 vector siointr

device  lpt0 at isa? port? tty irq 7 vector lptintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device vx0

pseudo-device loop
pseudo-device ether
pseudo-device log
pseudo-device sl  2
pseudo-device ppp  2
pseudo-device vn  1
pseudo-device tun  6
pseudo-device pty  64
pseudo-device bpfilter 4 #Berkeley packet filter
pseudo-device snp  4 #Snoop device - to look at pty/vty/etc..
#
# Not used now
#
# pseudo-device ccd  4 #Concatenated disk driver
#
pseudo-device disc   #Discard device
pseudo-device speaker   #Play IBM BASIC-style noises out your speaker
pseudo-device vn   #Vnode driver (turns a file into a device)
pseudo-device gzip   # Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options  KTRACE  #kernel tracing

# This provides support for System V shared memory.
#
options  SYSVSHM
options  SYSVSEM
options  SYSVMSG

options  SEMMAP=31
options  SEMMNI=11
options  SEMMNS=61
options  SEMMNU=31
options  SEMMSL=61
options  SEMOPM=101
options  SEMUME=11
options  SHOW_BUSYBUFS # List buffers that prevent root unmount
options  SHMALL=1025
options  "SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)"
options  SHMMAXPGS=1025
options  SHMMIN=2
options  SHMMNI=33
options  SHMSEG=9
options  MSGMNB=2049
options  MSGMNI=41
options  MSGSEG=2049
options  MSGSSZ=16
options  MSGTQL=41
options  NBUF=512
options  NMBCLUSTERS=1024
options  "CLK_USE_I8254_CALIBRATION"
options  "CLK_USE_I586_CALIBRATION"
options  "AUTO_EOI_1"

#
# This option includes a MD5 routine in the kernel, this is used for
# various authentication and privacy uses.
#
options  "MD5"

# Disk quotas are supported when this option is enabled.  If you
# change the value of this option, you must do a `make clean' in your
# kernel compile directory in order to get a working kernel.
#
options  QUOTA   #enable disk quotas
===========================================================

This is my file /etc/ppp/ppp-shell
===========================================================
#!/bin/sh -p

IDENT=`logname`
CALLEDAS="$IDENT"
TTY=`tty`

if [ x$IDENT = xdialup ]; then
 IDENT=`basename $TTY`
fi

echo "PPP for $CALLEDAS on $TTY"
echo "Starting PPP for $IDENT"

exec /usr/sbin/ppp -direct $IDENT
===========================================================

This is my ppp.conf.
===========================================================
default:
 set device /dev/cuaa0
 set speed 115200
 enable lqr
 set log Chat
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZ0E1Q0
OK-AT-OK \\dATD
T\\T TIMEOUT 40 CONNECT"
#
# Accounts for intranet access
#
pppoleg:
 set log +ipcp +lcp +ccp
 set ifaddr 172.16.64.254 172.16.65.1 255.255.255.255
 enable msext
 set ns pri-addr 172.16.64.5
#
ppppsn:
 set ifaddr 172.16.64.254 172.16.65.2 255.255.255.255
 enable msext
 set ns pri-addr 172.16.64.5
===========================================================

This is my ppp.log
===========================================================
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: Received Configure Request
(2) state = Ack-Rcvd (7)
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP:  COMPPROTO[6]  002d0f01
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP:  IPADDR[6]  172.16.65.1
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: MS NS req 129:255.255.255.255
ok - ack
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: MS NBNS req 130:0.0.0.0 ok -
ack
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: MS NS req 131:172.16.64.5 ok
- ack
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: MS NBNS req 132:0.0.0.0 ok -
ack
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: SendConfigAck(Ack-Rcvd)
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP:  COMPPROTO[6]  002d0f01
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP:  IPADDR[6]  172.16.65.1
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: State change Ack-Rcvd -->
Opened
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP: IpcpLayerUp(9).
Apr 28 18:11:37 gatekeeper ppp[696]: IPCP:  myaddr = 172.16.64.254
hisaddr = 172.16.65.1
Apr 28 18:11:37 gatekeeper ppp[696]: LCP: OsLinkup: 172.16.65.1
Apr 28 18:12:52 gatekeeper ppp[696]: CCP: CcpLayerStart.
Apr 28 18:12:52 gatekeeper ppp[696]: CCP: State change Stopped -->
Starting
Apr 28 18:12:52 gatekeeper ppp[696]: IPCP: OsLinkdown: 172.16.65.1
Apr 28 18:12:52 gatekeeper ppp[696]: IPCP: IpcpLayerDown.
Apr 28 18:12:52 gatekeeper ppp[696]: IPCP: 3388 octets in, 1622 octets
out
Apr 28 18:12:52 gatekeeper ppp[696]: IPCP: State change Opened -->
Starting
Apr 28 18:12:52 gatekeeper ppp[696]: LCP: LcpLayerDown
Apr 28 18:12:52 gatekeeper ppp[696]: LCP: State change Opened -->
Starting
Apr 28 18:43:12 gatekeeper ppp[696]: LCP: State change Starting -->
Initial
===========================================================
in this place ppp loops forever.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?354705E5.C93181E8>