Subject: pppd call problem
From: Clifford Kite
Date: 11/30/2007 4:31:41 PM
Alen192 <alessandro.narzisi@gmail.com> wrote:
> Hello, i have a problem with pppd, i try to connect the RAS Server Win
> 2003) of my factory network, but the pppd disconnect me after the
> authentication. The syslog is the following, i use chap and i change
In the log pppd accepts EAP (Extensible Authentication Protocol) whose
configuration file is /etc/ppp/srp-secrets. The format is the same
as for pap-secrets and chap-secrets but while EAP supports CHAP it is
not CHAP and the username and secret is expected to be in srp-secrets.
man srp-secrets.
If you want CHAP then you can try refusing EAP by adding the pppd option
refuse-eap . However, since the peer gets to specify the authentication
it may not work.
> the init string of the modem and the syslog is the following (i change
> in log USERNAME and PASSWORD (i think) -)
> Nov 30 18:47:59 localhost pppd[3866]: Serial connection established.
> Nov 30 18:47:59 localhost pppd[3866]: using channel 4
> Nov 30 18:47:59 localhost pppd[3866]: Using interface ppp0
> Nov 30 18:47:59 localhost pppd[3866]: Connect: ppp0 <--> /dev/ttyS0
<snip - negotiations to this point appeared reasonable>
> Nov 30 18:48:01 localhost pppd[3866]: rcvd [EAP Request id=0x1
> Identity <No message>]
> Nov 30 18:48:01 localhost pppd[3866]: sent [EAP Response id=0x1
> Identity <Name "USERNAME">]
> Nov 30 18:48:01 localhost pppd[3866]: rcvd [LCP EchoRep id=0x0
> magic=0x136b6a18]
> Nov 30 18:48:01 localhost pppd[3866]: rcvd [LCP TermReq id=0x3 I THINK
> THAT HERE THERE IS THE PASSWORD]
I'm not sure what your comment means. There is no sign in the log that
a password was sent and TermReq is an LCP terminate request. My _guess_
is that the RAS side doesn't like your username (or password if sent)
and so terminated LCP. That could be the case if srp-secrets isn't
configured correctly..
> Nov 30 18:48:01 localhost pppd[3866]: LCP terminated by peer
> (^Skj^X^@<M-Mt^@^@^CM-.)
> Nov 30 18:48:01 localhost pppd[3866]: sent [LCP TermAck id=0x3]
> Nov 30 18:48:01 localhost pppd[3866]: Hangup (SIGHUP)
> Nov 30 18:48:01 localhost pppd[3866]: Modem hangup
> Nov 30 18:48:01 localhost pppd[3866]: Connection terminated.
> Nov 30 18:48:02 localhost pppd[3866]: Exit.
> Can you said me what is the meaning of LCP terminated by peer
> (^Skj^X^@<M-Mt^@^@^CM-.) ? Thanks for your help.
I can't say what the (...) means. Usually control characters in a log
mean the original characters had hex representations beyond 7f and the
high bit was stripped in the process of generating ascii text. But the
() enclosing something with a "." at the end does look a lot like a
comment of some sort.
Regards-
--
Clifford Kite
/* Better is the enemy of good enough. */
|