Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 1998 22:21:41 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Michael Doyle <relyod@indigo.ie>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Please Help - PPP Configuration problems 
Message-ID:  <199806222121.WAA19794@awfulhak.org>
In-Reply-To: Your message of "Mon, 22 Jun 1998 16:33:38 BST." <3.0.5.32.19980622163338.00983100@pop.indigo.ie> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Here's my configuration file, and the last few entries from the PPP log.
> PPP is still connecting reliably. The first connection failed to log in
> (hung up)

Hmmm, it hung up 5 minutes and 10 seconds after connecting....

> the second worked properly for only about a minute, then froze, 
> the HDLC error appeared in the log file, and the send/recieve lights on the
> modem stopped flashing, but the connection stayed "open". 

I suspect the HDLC error (1 FCS error per connection) is because IOL 
is sending something like "Password accepted" (or some non-ppp data) 
at the end of the login sequence - something you're not ``expect''ing 
and therefore is considered ppp data, failing the checksum and being 
treated as an error.

> Any ideas whats wrong?

Not really.  You might want to get the latest version of ppp from 
http://www.Awfulhak.org/ppp.html and see if that helps...  Also, 
check out http://www.FreeBSD.org/FAQ/userppp.html and try mucking 
around with the logging - see if you can determine who's hanging up 
on who and why....

> The PC in question is running FreeBSD 2.2.5 RELEASE

There are lots of changes to ppp since then.  Make sure you eyeball 
the man page again if you download the latest version.

> ------------------- /etc/ppp/ppp.conf --------------------
> #
> # MODEM INIT STRING
> #  AT&F1&K3E1Q0
> #     &F1 - return to factory default setting
> #     &K3 - turn on hardware flow control  (PPP Expects this)
> #     E! - Command chars echoed. 
> #     Q0 - Enable responses to Computer. (i.e. make messages like "OK", 
> #          "CONNECT" come through. 
> #
> 
> #
> # Default setup. Always executed when PPP is invoked.  
> # 
> default: set device /dev/cuaa1 
>  set speed 57600
>  set log Phase Connect Carrier tun 
>  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT&FE1Q0 OK-AT-OK
> \\dATDT\\T TIMEOUT 40 CONNECT"
> #login name and password for PAP/CHAP 
>  set authname XXXXXX 
>  set authkey XXXXXX
> 
> #  invoke ppp as:
> #  $ ppp -auto ondemand
> #
> ondemand:
>  set phone "0 6706702"
>  set login "TIMEOUT 5 ogin: XXXXXX word: XXXXXX"
>  set timeout 120
>  set ifaddr 0.0.0.0/0 194.106.128.129 255.255.255.0
>  delete all
>  add 0 0 HISADDR
> 
> ------------------------ Excerpt from tail of /var/log/ppp.log ------------
> 
> This excerpt starts after the PPP process was restarted with the above
> ppp.conf file
> It contains a few "failed dial attempts", and a few succesful PPP connections
> which freeze with HDLC errors.
> ----------------------------------------------------------------------------
> Jun 22 16:13:18 liffey ppp[7086]: tun0: Phase: Using interface: tun0 
> Jun 22 16:13:18 liffey ppp[7086]: tun0: Phase: Listening at port 3000. 
> Jun 22 16:13:18 liffey ppp[7087]: tun0: Phase: PPP Started. 
> Jun 22 16:13:33 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:13:33 liffey ppp[7087]: tun0: Connect: OK 
> Jun 22 16:13:33 liffey ppp[7087]: tun0: Phase: Phone: 0 6706702 
> Jun 22 16:13:33 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:14:01 liffey ppp[7087]: tun0: Connect: ATDT0 6706702^M^M 
> Jun 22 16:14:01 liffey ppp[7087]: tun0: Connect: CONNECT 
> Jun 22 16:14:01 liffey ppp[7087]: tun0: Connect:  57600^M 
> Jun 22 16:14:06 liffey ppp[7087]: tun0: Warning: DialModem: login failed. 
> Jun 22 16:14:06 liffey ppp[7087]: tun0: Phase: *Connected! 
> Jun 22 16:14:06 liffey ppp[7087]: tun0: Phase: Enter pause (30) for
> redialing. 
> Jun 22 16:14:36 liffey ppp[7087]: tun0: Phase: Redialing timer expired. 
> Jun 22 16:14:37 liffey ppp[7087]: tun0: Connect: AT&FE1Q0^M^M 
> Jun 22 16:14:37 liffey ppp[7087]: tun0: Connect: OK 
> Jun 22 16:14:37 liffey ppp[7087]: tun0: Phase: Phone: 0 6706702 
> Jun 22 16:14:37 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:15:01 liffey ppp[7087]: tun0: Connect: ATDT0 6706702^M^M 
> Jun 22 16:15:01 liffey ppp[7087]: tun0: Connect: CONNECT 
> Jun 22 16:15:01 liffey ppp[7087]: tun0: Connect:  57600^M 
> Jun 22 16:15:04 liffey ppp[7087]: tun0: Connect: Welcome to Connect-Ireland
> Internet Services!^M 
> Jun 22 16:15:04 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:15:04 liffey ppp[7087]: tun0: Connect: Single-user,
> non-dedicated, unmetered, dialup PPP access for 85 IRP per year.^M 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect: Voice: 01-670-6701^M 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect:   Fax: 01-679-0089^M 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect: NOTE: please enter your
> username in lowercase!^M 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:15:05 liffey last message repeated 2 times
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect: login: 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect:  coopn^M 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Connect: Password: 
> Jun 22 16:15:05 liffey ppp[7087]: tun0: Phase: *Connected! 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase: NewPhase: Authenticate 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase:  his = c023, mine = 0 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase: PAP: coopn 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase: NewPhase: Authenticate 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase:  his = c023, mine = 0 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase: PAP: coopn 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase: PapInput: ACK 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase: Received PAP_ACK (Login
> Succeeded) 
> Jun 22 16:15:09 liffey ppp[7087]: tun0: Phase: NewPhase: Network 
> Jun 22 16:16:09 liffey ppp[7087]: tun0: Phase: HDLC errors -> FCS: 1 ADDR:
> 0 COMD: 0 PROTO: 0 
> Jun 22 16:21:19 liffey ppp[7087]: tun0: Phase: Disconnected! 
> Jun 22 16:21:19 liffey ppp[7087]: tun0: Phase: Connect time: 374 secs 
> Jun 22 16:21:19 liffey ppp[7087]: tun0: Phase: NewPhase: Dead 
> Jun 22 16:21:33 liffey ppp[7087]: tun0: Connect: AT&FE1Q0^M^M 
> Jun 22 16:21:33 liffey ppp[7087]: tun0: Connect: OK 
> Jun 22 16:21:33 liffey ppp[7087]: tun0: Phase: Phone: 0 6706702 
> Jun 22 16:21:33 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:22:13 liffey ppp[7087]: tun0: Warning: DialModem: dial failed. 
> Jun 22 16:22:13 liffey ppp[7087]: tun0: Phase: Enter pause (30) for
> redialing. 
> Jun 22 16:22:43 liffey ppp[7087]: tun0: Phase: Redialing timer expired. 
> Jun 22 16:22:43 liffey ppp[7087]: tun0: Connect: AT&FE1Q0^M^M 
> Jun 22 16:22:43 liffey ppp[7087]: tun0: Connect: OK 
> Jun 22 16:22:43 liffey ppp[7087]: tun0: Phase: Phone: 0 6706702 
> Jun 22 16:22:43 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:23:08 liffey ppp[7087]: tun0: Connect: ATDT0 6706702^M^M 
> Jun 22 16:23:08 liffey ppp[7087]: tun0: Connect: CONNECT 
> Jun 22 16:23:08 liffey ppp[7087]: tun0: Connect:  57600^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: Welcome to Connect-Ireland
> Internet Services!^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: Single-user,
> non-dedicated, unmetered, dialup PPP access for 85 IRP per year.^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: Voice: 01-670-6701^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect:   Fax: 01-679-0089^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: NOTE: please enter your
> username in lowercase!^M 
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: ^M 
> Jun 22 16:23:12 liffey last message repeated 2 times
> Jun 22 16:23:12 liffey ppp[7087]: tun0: Connect: login: 
> Jun 22 16:23:13 liffey ppp[7087]: tun0: Connect:  coopn^M 
> Jun 22 16:23:13 liffey ppp[7087]: tun0: Connect: Password: 
> Jun 22 16:23:13 liffey ppp[7087]: tun0: Phase: *Connected! 
> Jun 22 16:23:17 liffey ppp[7087]: tun0: Phase: NewPhase: Authenticate 
> Jun 22 16:23:17 liffey ppp[7087]: tun0: Phase:  his = c023, mine = 0 
> Jun 22 16:23:17 liffey ppp[7087]: tun0: Phase: PAP: coopn 
> Jun 22 16:23:17 liffey ppp[7087]: tun0: Phase: PapInput: ACK 
> Jun 22 16:23:17 liffey ppp[7087]: tun0: Phase: Received PAP_ACK (Login
> Succeeded) 
> Jun 22 16:23:17 liffey ppp[7087]: tun0: Phase: NewPhase: Network 
> Jun 22 16:24:16 liffey ppp[7087]: tun0: Phase: HDLC errors -> FCS: 1 ADDR:
> 0 COMD: 0 PROTO: 0 
> 
> <><=====================================================><>
> Michael Doyle                   phone: +353-1-661-0588
> Network Administrator           http://www.co-operation-north.ie/
> Co-Operation North		
> 
> E-mail: relyod@co-operation-north.ie	(0ffice)
> 	relyod@indigo.ie		(Personal)

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



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?199806222121.WAA19794>