?

Log in

No account? Create an account
More PPP fun - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

More PPP fun [Jun. 23rd, 2001|01:02 am]
Brad Fitzpatrick
Making progress... I can see I'm connecting now, but it's dying too early still. $5 still up for grabs! :-)


/etc/peers/gn2
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/gn2"
debug
/dev/gnokii
115200
defaultroute
noipdefault
user bradfitz
remotename gn2
name bradfitz
passive
modem
crtscts

/etc/chatscripts/gn2
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER'
'' ATZ
OK-AT-OK ATDT2068125577
CONNECT \d\c
name: bradfitz assword: MahPasswordSnipped '>>' ppp

/var/log/messages
Jun 23 00:55:55 lapwarmer chat[801]: abort on (NO CARRIER)
Jun 23 00:55:55 lapwarmer chat[801]: abort on (VOICE)
Jun 23 00:55:55 lapwarmer chat[801]: abort on (NO DIALTONE)
Jun 23 00:55:55 lapwarmer chat[801]: abort on (NO DIAL TONE)
Jun 23 00:55:55 lapwarmer chat[801]: abort on (NO ANSWER)
Jun 23 00:55:55 lapwarmer chat[801]: send (ATZ^M)
Jun 23 00:55:56 lapwarmer chat[801]: expect (OK)
Jun 23 00:55:56 lapwarmer chat[801]: ATZ
Jun 23 00:55:56 lapwarmer chat[801]: ^M
Jun 23 00:55:56 lapwarmer chat[801]: OK
Jun 23 00:55:56 lapwarmer chat[801]: -- got it
Jun 23 00:55:56 lapwarmer chat[801]: send (ATDT2068125577^M)
Jun 23 00:55:56 lapwarmer chat[801]: expect (CONNECT)
Jun 23 00:55:56 lapwarmer chat[801]: ^M
Jun 23 00:55:56 lapwarmer chat[801]: ATDT2068125577
Jun 23 00:55:56 lapwarmer chat[801]: ^M
Jun 23 00:56:05 lapwarmer chat[801]: ^M
Jun 23 00:56:05 lapwarmer chat[801]: CARRIER^M
Jun 23 00:56:14 lapwarmer chat[801]: ^M
Jun 23 00:56:14 lapwarmer chat[801]: CONNECT
Jun 23 00:56:14 lapwarmer chat[801]: -- got it
Jun 23 00:56:14 lapwarmer chat[801]: send (\d)
Jun 23 00:56:15 lapwarmer chat[801]: expect (name:)
Jun 23 00:56:15 lapwarmer chat[801]: ^M
Jun 23 00:56:15 lapwarmer last message repeated 2 times
Jun 23 00:56:15 lapwarmer chat[801]: User Access Verification^M
Jun 23 00:56:15 lapwarmer chat[801]: ^M
Jun 23 00:56:15 lapwarmer chat[801]: Username:
Jun 23 00:56:15 lapwarmer chat[801]: -- got it
Jun 23 00:56:15 lapwarmer chat[801]: send (bradfitz^M)
Jun 23 00:56:15 lapwarmer chat[801]: expect (assword:)
Jun 23 00:56:16 lapwarmer chat[801]: bradfitz^M
Jun 23 00:56:16 lapwarmer chat[801]: Password:
Jun 23 00:56:16 lapwarmer chat[801]: -- got it
Jun 23 00:56:16 lapwarmer chat[801]: send (MahPasswordSnipped^M)
Jun 23 00:56:16 lapwarmer chat[801]: expect (>>)
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: Univ. of Wash. C&C Telnet/PPP/SLIP Facility^M
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: This facility supports rlogin and single-host PPP, PPP with PAP, SLIP,^M
Jun 23 00:56:17 lapwarmer chat[801]: and CSLIP.^M
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: 8 data bits, 1 stop bit, and no parity settings are required. V.42 or^M
Jun 23 00:56:17 lapwarmer chat[801]: MNP4 error correction and RTS/CTS hardware flow control are recommended.^M
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: Please send comments or problem reports to help@cac.washington.edu^M
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: Enter an appropriate PPP/SLIP command at the prompt, or, for rlogin^M
Jun 23 00:56:17 lapwarmer chat[801]: connections, enter a host name (e.g., homer) to connect or enter 'exit'^M
Jun 23 00:56:17 lapwarmer chat[801]: to disconnect.^M
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: ^M
Jun 23 00:56:17 lapwarmer chat[801]: cs304>>
Jun 23 00:56:17 lapwarmer chat[801]: -- got it
Jun 23 00:56:17 lapwarmer chat[801]: send (ppp^M)
Jun 23 00:56:18 lapwarmer pppd[800]: Serial connection established.
Jun 23 00:56:19 lapwarmer pppd[800]: Exit.
LinkReply

Comments:
From: artartart
2001-06-23 01:05 am (UTC)

PPP

I will always and forever think that PPP stands for nothing other than "perfect passive participle."
(Reply) (Thread)
[User Picture]From: jacqui
2001-06-23 01:45 am (UTC)
HI Sweetpea,

Just came by to give you a hug and say hello : )

Yeay it's Summer.

Hugs,
Wacqui
XOXOXO
(Reply) (Thread)
[User Picture]From: mart
2001-06-23 03:26 am (UTC)

Some thoughts...

  • I needed to put PPPOPTIONS="noauth" in ifcfg-ppp0 to stop it trying to do pap auth. (Chat script does auth)
  • Put \q in front of your password in the chat script to stop it showing up in the logs. (Won't help this problem, but probably a good idea)
  • In my chat scripts, after starting the ppp sessions (which for you seems to be sending 'ppp', and the instructions at uw do seem to confirm this) I have it wait for a tilde symbol and two dashes (~) and then send nothing in response. This is probably instead of your 'ppp' command but I thought I'd suggest it anyway.

It does seem that you are not doing something which the other system wants, and thus it's hanging up on you after a time... but I don't really know that much about ppp, and just used minicom to connect to my ISP once and bashed a login script out of that... perhaps you could try that...

(My dialup box is based on Red Hat, so it'll probably differ a bit from your Debian install...)

(Reply) (Thread)
From: zztzed
2001-06-23 04:59 am (UTC)
Try using PAP authentication and starting a PPP session right when you connect, without answering the username/password/cs304>> prompts.
(Reply) (Thread)
From: unsuffer
2001-06-23 07:58 am (UTC)

assword?

>> expect (assword:)

here's your problem - they need an "assword" :P
(Reply) (Thread)
[User Picture]From: starblazr
2001-06-23 09:42 am (UTC)
have you tried dialing using a dialer (read:minicom), exiting w/o hanging up, and then starting pppd manually? (something to the effect of : pppd -d detach /dev/gnokii 9600 &)...

see if that works...
(Reply) (Thread)
From: quinna
2001-06-23 01:46 pm (UTC)

wvdial ....

Its been a long time since I've had any experience whatsoever with any isp which has a terminal sequence a bit like what you've had, but seeing as its 4:25am (on the wrong side of Australia), my little recommendation is a small dialer utility called wvdial.

If I remember reading right, you use Debian , in which case its certainly included. The whole PPP configuration thing is more than a little ugly IMHO but wvdial has generally worked for me.

The only example I've got around here on how to configure it resides on a gateway I dial out of. /etc/wvdial.conf looks like:

[Dialer Defaults]
modem = /dev/modem
Baud = 115200
Init = ATZM0
Phone = 9279 0555
Username = quinncd
Password = *********
Login = quinncd
Auto Reconnect = off

of course you'd replace things with what they should be.

I get the following back when I run "wvdial" (as nohup wvdial &, then I can log out :-) )

--> Sending: quinncd
quinncd
Password: password:
--> Looks like a password prompt.
--> Sending: (password)
annex:
--> Hmm... a prompt. Sending "ppp".
~[7f]}#@!}!i} }?}"}&} }*} } }%}&9__}.}'}"}(}"}1}$}%t}3}'}!chapty~
--> PPP negotiation detected.
--> Starting pppd at Sun Jun 24 02:42:59 2001

You're almost certainly not getting anything back after the last ppp^M, or you'd have signs of negotiations. Dropping out is probably after a multiple of minutes timeout that a ppp negotation hasn't started. It looks like you've definately authenticated correctly or you wouldn't make it to the point you need to get ppp entered, which is the last issue. Depending on the server setup, you get messages like the following after all works well, so you get allocated an ip address (ifconfig shows the ppp device as up)

Jun 24 02:43:00 gateway pppd[502]: pppd 2.4.0b1 started by root, uid 0
Jun 24 02:43:00 gateway pppd[502]: Using interface ppp0
Jun 24 02:43:00 gateway pppd[502]: Connect: ppp0 <--> /dev/ttyS1
Jun 24 02:43:01 gateway pppd[502]: local IP address 198.142.79.176
Jun 24 02:43:01 gateway pppd[502]: remote IP address 198.142.79.254

Give wvdial a whirl I reckon. Low level editing of ppp setups sounds too error prone. There are some options otherwise to tweak a few things, otherwise over a day to get ppp working is a tad long ! Failing that I might be inspired to look a little further ! (and not for $5 =) )
(Reply) (Thread)
[User Picture]From: bradfitz
2001-06-23 01:57 pm (UTC)

Re: wvdial ....

I get:

ATDT 2068125577
CARRIER
CONNECT
--> Carrier Detected, waiting for prompt
Returning not ok!!
--> Disconnecting at [time]

(Reply) (Parent) (Thread)
[User Picture]From: starblazr
2001-06-23 03:15 pm (UTC)

Re: wvdial ....

did it send cr's to try to wakeup the term, cuz the pppscript looked like it sent a cr or so to wakeup the term...

just a thouhgt.
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2001-06-23 04:28 pm (UTC)

Re: wvdial ....

and how do I make wvdial do that?
(Reply) (Parent) (Thread)
[User Picture]From: starblazr
2001-06-23 09:29 pm (UTC)

Re: wvdial ....

i dunno, i think possibly some \n's after the connect.. i'll do some more reasearch and see what i can find out ..
(Reply) (Parent) (Thread)