linux-l: ppp
Wolfgang Metze
metze at trionet.de
Mi Jul 9 17:22:36 CEST 1997
Hallo,
obwohl ich die Diskussion über pppd verfolgt habe, finde ich den Fehler
nicht, weshalb ein bekannter
keine Verbindung zu mir aufbauen kann.
Zur Information: Es wird kein login-Script benötigt, es ist eine reine
PPP-Verbindung.
Erste Frage: Verwendet pppd von linux synchrones oder asynchrones PPP?
Im folgenden ein Auszug aus den einzelnen Dateien:
/var/log/messages:
Jul 8 14:55:01 fox kernel: PPP: version 2.2.0 (dynamic channel
allocation)
Jul 8 14:55:01 fox kernel: PPP Dynamic channel allocation code
copyright 1995 Caldera, Inc.
Jul 8 14:55:01 fox kernel: PPP line discipline registered.
Jul 8 14:55:01 fox kernel: registered device ppp0
Jul 8 14:55:01 fox syslog: IPX support is not present in the kernel
Jul 8 14:55:01 fox pppd[211]: pppd 2.2.0 started by root, uid 0
Jul 8 14:55:02 fox chat[214]: abort on (NO CARRIER)
Jul 8 14:55:02 fox chat[214]: abort on (BUSY)
Jul 8 14:55:02 fox chat[214]: abort on (NO DIALTONE)
Jul 8 14:55:02 fox chat[214]: abort on (ERROR)
Jul 8 14:55:02 fox chat[214]: send (+++atz^M)
Jul 8 14:55:02 fox chat[214]: expect (OK)
Jul 8 14:55:03 fox chat[214]: atz^M^M
Jul 8 14:55:03 fox chat[214]: OK -- got it
Jul 8 14:55:03 fox chat[214]: send (ATDT84492444^M)
Jul 8 14:55:03 fox chat[214]: expect (V42BIS)
Jul 8 14:55:03 fox chat[214]: ^M
Jul 8 14:55:20 fox chat[214]: ATDT84492444^M^M
Jul 8 14:55:20 fox chat[214]: CONNECT 38400/V42BIS -- got it
Jul 8 14:55:20 fox chat[214]: send (^M)
Jul 8 14:55:20 fox pppd[211]: Serial connection established.
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set flags to 10000
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: get flags: addr bffff924
flags 0
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set flags to 10000
Jul 8 14:55:21 fox pppd[211]: Using interface ppp0
Jul 8 14:55:21 fox pppd[211]: Connect: ppp0 <--> /dev/modem
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set xasyncmap
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set xmit asyncmap ffffffff
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: get flags: addr bffff8d4
flags 0
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set flags to 10000
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set mru to 5dc
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set rcv asyncmap 0
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: get flags: addr bffff900
flags 0
Jul 8 14:55:21 fox kernel: ppp_tty_ioctl: set flags to 10010
Jul 8 14:55:21 fox pppd[211]: sent [LCP ConfReq id=0x1 <mru 1500>
<asyncmap 0x20a0000> <auth pap> <magic 0x7786793d>
<pcomp> <accomp>]
Jul 8 14:55:21 fox kernel: ppp_dev_xmit_lower: fcs is 5afb
Jul 8 14:55:21 fox kernel: ppp_dev_xmit: writing 59 chars
Jul 8 14:55:24 fox pppd[211]: sent [LCP ConfReq id=0x1 <mru 1500>
<asyncmap 0x20a0000> <auth pap> <magic 0x7786793d>
<pcomp> <accomp>]
Jul 8 14:55:24 fox kernel: ppp_dev_xmit_lower: fcs is 5afb
Jul 8 14:55:24 fox kernel: ppp_dev_xmit: writing 59 chars
Jul 8 14:55:24 fox kernel: ppp_tty_read: called buf=0805db22 nr=1504
Jul 8 14:55:24 fox kernel: ppp_tty_read: no data (EAGAIN)
Jul 8 14:55:24 fox kernel: ppp: successfully queued 30 bytes, flags =
f010010
Jul 8 14:55:24 fox kernel: ppp_tty_read: called buf=0805db22 nr=1504
Jul 8 14:55:24 fox kernel: ppp_tty_read: len = 30
Jul 8 14:55:24 fox kernel: ppp_tty_read: passing 32 bytes up
Jul 8 14:55:24 fox pppd[211]: rcvd [LCP ConfReq id=0x0 <mru 1500>
<asyncmap 0x0> <auth pap> <magic 0xb0343ae2> <pcomp>
<accomp>]
Jul 8 14:55:24 fox pppd[211]: sent [LCP ConfAck id=0x0 <mru 1500>
<asyncmap 0x0> <auth pap> <magic 0xb0343ae2> <pcomp>
<accomp>]
Jul 8 14:55:24 fox kernel: ppp_dev_xmit_lower: fcs is c5af
Jul 8 14:55:24 fox kernel: ppp_dev_xmit: writing 59 chars
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set mru to 5dc
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set rcv asyncmap 20a0000
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get flags: addr bffff8e0
flags f000010
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set flags to f010000
Jul 8 14:55:24 fox kernel: ppp: successfully queued 30 bytes, flags =
f010000
Jul 8 14:55:24 fox kernel: ppp_tty_read: called buf=0805db22 nr=1504
Jul 8 14:55:24 fox kernel: ppp_tty_read: len = 30
Jul 8 14:55:24 fox kernel: ppp_tty_read: passing 32 bytes up
Jul 8 14:55:24 fox pppd[211]: rcvd [LCP ConfAck id=0x1 <mru 1500>
<asyncmap 0x20a0000> <auth pap> <magic 0x7786793d>
<pcomp> <accomp>]
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set xmit asyncmap 0
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get flags: addr bffff858
flags f000000
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set flags to f010003
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set mru to 5dc
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set rcv asyncmap 20a0000
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get flags: addr bffff864
flags f000003
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set flags to f010003
Jul 8 14:55:24 fox pppd[211]: sent [PAP AuthReq id=0x1 user="myname"
password="mypassword"]
Jul 8 14:55:24 fox kernel: ppp_dev_xmit_lower: fcs is ac51
Jul 8 14:55:24 fox kernel: ppp_dev_xmit: writing 26 chars
Jul 8 14:55:24 fox kernel: ppp: successfully queued 8 bytes, flags =
f010003
Jul 8 14:55:24 fox kernel: ppp_tty_read: called buf=0805db22 nr=1504
Jul 8 14:55:24 fox kernel: ppp_tty_read: len = 8
Jul 8 14:55:24 fox kernel: ppp_tty_read: passing 10 bytes up
Jul 8 14:55:24 fox pppd[211]: rcvd [PAP AuthReq id=0x1 user=""
password=""]
Jul 8 14:55:24 fox pppd[211]: PAP authentication failure for
Jul 8 14:55:24 fox kernel: ppp_dev_xmit_lower: fcs is 2c24
Jul 8 14:55:24 fox kernel: ppp_dev_xmit: writing 26 chars
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set xmit asyncmap ffffffff
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get flags: addr bffff844
flags f000003
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set flags to f010000
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set mru to 5dc
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set rcv asyncmap 0
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get flags: addr bffff880
flags f000000
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set flags to f010010
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get flags: addr bffff85c
flags f000010
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set flags to f010010
Jul 8 14:55:24 fox kernel: ppp_dev_xmit_lower: fcs is 2859
Jul 8 14:55:24 fox kernel: ppp_dev_xmit: writing 18 chars
Jul 8 14:55:24 fox pppd[211]: sent [PAP AuthNak id=0x1msg="Login
incorrect"]
Jul 8 14:55:24 fox pppd[211]: sent [LCP TermReq id=0x2]
Jul 8 14:55:24 fox kernel: ppp: successfully queued 7 bytes, flags =
f010010
Jul 8 14:55:24 fox kernel: ppp_tty_read: called buf=0805db22 nr=1504
Jul 8 14:55:24 fox kernel: ppp_tty_read: len = 7
Jul 8 14:55:24 fox kernel: ppp_tty_read: passing 9 bytes up
Jul 8 14:55:24 fox pppd[211]: rcvd [PAP AuthAck id=0x1msg=""]
Jul 8 14:55:24 fox kernel: ppp: successfully queued 6 bytes, flags =
f010010
Jul 8 14:55:24 fox kernel: ppp_tty_read: called buf=0805db22 nr=1504
Jul 8 14:55:24 fox kernel: ppp_tty_read: len = 6
Jul 8 14:55:24 fox kernel: ppp_tty_read: passing 8 bytes up
Jul 8 14:55:24 fox pppd[211]: rcvd [LCP TermReq id=0x2]
Jul 8 14:55:24 fox pppd[211]: sent [LCP TermAck id=0x2]
Jul 8 14:55:24 fox kernel: ppp_dev_xmit_lower: fcs is d94
Jul 8 14:55:24 fox kernel: ppp_dev_xmit: writing 19 chars
Jul 8 14:55:24 fox kernel: ppp: successfully queued 6 bytes, flags =
f010010
Jul 8 14:55:24 fox kernel: ppp_tty_read: called buf=0805db22 nr=1504
Jul 8 14:55:24 fox kernel: ppp_tty_read: len = 6
Jul 8 14:55:24 fox kernel: ppp_tty_read: passing 8 bytes up
Jul 8 14:55:24 fox pppd[211]: rcvd [LCP TermAck id=0x2]
Jul 8 14:55:24 fox pppd[211]: Connection terminated.
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get flags: addr bffff934
flags f000010
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: get debug level 1
Jul 8 14:55:24 fox kernel: ppp_tty_ioctl: set flags to f000010
Jul 8 14:55:24 fox pppd[211]: Exit.
Jul 8 14:57:01 fox kernel: PPP: ppp line discipline successfully
unregistered
chap-secrets
# client server secret IP addresses
hmaurer * tnyA71t
name hmaurer
kdebug 1
+pap
ing PAP
# client server secret IP addresses
# In Wirklichkeit steht mein richtiges Kennwort da unten.
hmaurer * <my-passwd>
ABORT BUSY
ABORT "NO DIALTONE"
ABORT ERROR
"" +++atz OK ATDT84492444 "V42BIS" ""
#
# file: /etc/ppp/ppp-off
#
######################################################################
#
# Determine the device to be terminated.
#
if [ "$1" = "" ]; then
DEVICE=ppp0
else
DEVICE=$1
fi
######################################################################
#
# If the ppp0 pid file is present then the program is running. Stop it.
if [ -r /var/run/$DEVICE.pid ]; then
kill -INT `cat /var/run/$DEVICE.pid`
#
# If the kill did not work then there is no process running for this
# pid. It may also mean that the lock file will be left. You may wish
# to delete the lock file at the same time.
if [ ! "$?" = "0" ]; then
rm -f /var/run/$DEVICE.pid
echo "ERROR: Removed stale pid file"
exit 1
fi
#
# Success. Let pppd clean up its own junk.
echo "PPP link to $DEVICE terminated."
exit 0
fi
#
# The ppp process is not running for ppp0
echo "ERROR: PPP link is not active on $DEVICE"
exit 1
#
# file: /etc/ppp/ppp.on
#
# This script is based on the script "ppp-on" found at
#
ftp://sunsite.unc.edu/pub/Linux/system/Network/serial/ppp/ppp-2.2.0f.tar.gz
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic =
0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally
0.0.0.0
DEVICE=/dev/modem
NETMASK=255.255.255.0 # The proper netmask if needed
#
# export current tty to enable output in dialer script
#
export TERMINAL=`tty`
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp.chat
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
#
PPP_FLAGS="38400 mru 1500 modem debug kdebug 1 \
defaultroute crtscts noipdefault asyncmap 20A0000 escape FF"
/usr/sbin/pppd lock connect \
'/usr/sbin/chat -v -t 45 -f /etc/ppp/ppp.chat' \
$DEVICE $PPP_FLAGS $LOCAL_IP:$REMOTE_IP
Vielleicht sehe ich auch den Wald vor lauter Bäumen nicht...
Schon einmal im voraus vielen Dank!
Wolfgang
Mehr Informationen über die Mailingliste linux-l