🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #56878

Re: PPP script, PAP problems

#56878
From: Steve Lamoureux
Date: Sun, 15 Dec 1996 00:00
133 lines
4483 bytes
I'm having the same kind of problems you're having.
Here's my config files :

/etc/hosts
#
# hosts		This file describes a number of hostname-to-address
#		mappings for the TCP/IP subsystem.  It is mostly
#		used at boot time, when no name servers are running.
#		On small systems, this file can be used instead of a
#		"named" name server.  Just add the names, addresses
#		and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes
problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

127.0.0.1       localhost

# End of hosts.

/etc/HOSTNAME
stevelam.total.net

/etc/networks
#
# networks	This file describes a number of netname-to-address
#		mappings for the TCP/IP subsystem.  It is mostly
#		used at boot time, when no name servers are running.
#

loopback	127.0.0.0

# End.

/etc/resolv.conf
domain total.net
nameserver 205.205.159.2
nameserver 205.205.159.3

/etc/ppp/ppp-on         (ou /usr/sbin/ppp-on)
#!/bin/sh
TELEPHONE=481-3998
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.255.0
export TELEPHONE
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd debug /dev/modem 38400 \
    $LOCAL_IP:$REMOTE_IP \
    connect $DIALER_SCRIPT

/etc/ppp/ppp-on-dialer  (ou /usr/sbin/ppp-on-dialer)
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v						\
	TIMEOUT		3				\
	ABORT		'\nBUSY\r'			\
	ABORT		'\nNO ANSWER\r'			\
	ABORT		'\nRINGING\r\n\r\nRINGING\r'	\
	''		\rAT				\
	'OK-+++\c-OK'	ATH0				\
	TIMEOUT		30				\
	OK		ATDT$TELEPHONE			\
	CONNECT		''				

/etc/ppp/pap-secrets
#local     remote     secret       IP address list
my_userid  *          my_password

/etc/ppp/options
-detach
modem
lock
crtscts
defaultroute
asyncmap 0
mtu 552
mru 552
name my_userid
+pap


Here's my SYSLOG :

Dec 14 18:33:30 localhost syslog: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
Dec 14 18:34:25 localhost pppd[245]: LCP: timeout sending
Config-Requests
Dec 14 18:34:25 localhost pppd[245]: Receive serial link is not 8-bit
clean:
Dec 14 18:34:25 localhost pppd[245]: Problem: all had bit 7 set to 0

Here's my MESSAGES log :


Dec 14 18:33:31 localhost pppd[245]: pppd 2.2.0 started by root, uid 0
Dec 14 18:33:32 localhost chat[246]: timeout set to 3 seconds
Dec 14 18:33:32 localhost chat[246]: abort on (\nBUSY\r) 
Dec 14 18:33:32 localhost chat[246]: abort on (\nNO ANSWER\r) 
Dec 14 18:33:32 localhost chat[246]: abort on
(\nRINGING\r\n\r\nRINGING\r) 
Dec 14 18:33:32 localhost chat[246]: send (rAT^M) 
Dec 14 18:33:32 localhost chat[246]: expect (OK) 
Dec 14 18:33:32 localhost chat[246]: ^M 
Dec 14 18:33:32 localhost chat[246]: OK -- got it 
Dec 14 18:33:32 localhost chat[246]: send (ATH0^M) 
Dec 14 18:33:32 localhost chat[246]: timeout set to 30 seconds
Dec 14 18:33:32 localhost chat[246]: expect (OK) 
Dec 14 18:33:32 localhost chat[246]: ^M 
Dec 14 18:33:33 localhost chat[246]: ^M 
Dec 14 18:33:33 localhost chat[246]: OK -- got it 
Dec 14 18:33:33 localhost chat[246]: send (ATDT481-3998^M) 
Dec 14 18:33:33 localhost chat[246]: expect (CONNECT) 
Dec 14 18:33:33 localhost chat[246]: ^M 
Dec 14 18:33:54 localhost chat[246]: ^M 
Dec 14 18:33:54 localhost chat[246]: CONNECT -- got it 
Dec 14 18:33:54 localhost chat[246]: send (^M) 
Dec 14 18:33:54 localhost pppd[245]: Serial connection established.
Dec 14 18:33:55 localhost pppd[245]: Using interface ppp0
Dec 14 18:33:55 localhost pppd[245]: Connect: ppp0 <--> /dev/modem
Dec 14 18:34:25 localhost pppd[245]: Connection terminated.
Dec 14 18:34:25 localhost pppd[245]: Exit.


My ISP is also using PAP... any ideas why it doesn't work?

Steve
Technical Details
Message-ID: <32B47A09.3A5F@total.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <32B396D7.4ACB@ans.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,93f9be25d0a6c7aa
X-Google-Attributes: gid102983,public
X-Google-Thread: 10669a,93f9be25d0a6c7aa
X-Google-Attributes: gid10669a,public
From: Steve Lamoureux <stevelam@total.net>
Subject: Re: PPP script, PAP problems
Date: 1996/12/15
Message-ID: <32B47A09.3A5F@total.net>
X-Deja-AN: 204301362
references: <32B396D7.4ACB@ans.com.au>
content-type: text/plain; charset=us-ascii
organization: TotalNet Inc.
mime-version: 1.0
newsgroups: aus.computers.linux,comp.os.linux.networking
x-mailer: Mozilla 3.0 (Win95; I)