Re: [uClinux-dev] PPPD with PAP/CHAP and uClinux-2.4.x

From: David Beamonte (dbeamonte@intelnet.es)
Date: Thu Sep 19 2002 - 02:55:34 EDT


Hi,

I have created pap-secrets at /etc/config, if the file wasnt't created,
pppd wouldn't even start, because it yields a message saying that it
can't find the secret of the name or something similar. So that's not
the problem.

I have tried to enable debug and syslogd but I haven't been able to
configure "busybox syslogd" properly, and it doesn't work for me. The 
only messages I get in /var/syslog are the ones from syslogd when it
starts and dies, but the other ones from my applications and from pppd
never are printed. Maybe is a problem with the UNIX socket that syslogd
uses. But that's another problem that I hope to solve soon. So, I can't
use syslogd to debug my board applications. Instead, the log I sent in
my other mail was the one from my local machine.

The fact that surprises me from the log i get, is that my local machine
is the one that rejects the PAP configuration forced by the VZ board.
Maybe is a problem of pppd versions (in my RedHat machine I use
ppp-2.4.1), or I'm missing the insertion of a module needed by ppp, but
I don't get any other error, so.... I'm a bit confused...

Znx anyway.

David


Greg Ungerer wrote:
 > Hi David,
 >
 > David Beamonte wrote:
 >
 >> I'm trying to use PAP/CHAP with my uClinux box with no success. I'm
 >> using a propietary board based on a M68VZ328 processor with
 >> uClinux-2.4.17 running on it and uClibc-0.9.9.
 >>
 >> The pppd version I'm using is the one from the unified uClinux distro,
 >> which seems to be pppd-2.3.8. I have been reading the pppd documentation
 >> and it is stated that with linux kernels above 2.4.x, pppd must be
 >> upgraded to at least 2.4.0.
 >
 >
 > The pppd (which is 2.3.8) in the uClinux-dist works with 2.4.17.
 > We use it _alot_.
 >
 >
 >> The error I'm given is that my RedHat 7.2 box rejects de pap
 >> negotiation, but it's properly configured. This is the log I get from my
 >> RedHat machine.
 >
 >
 > Most likely a config problem on your uClinux system.
 > Did you create the pap-secrets and chap-secrets files
 > in /etc/config/?
 >
 > Try enabling debug on the uClinux pppd side to, and check
 > /var/log/syslog for problems.
 >
 > Regards
 > Greg
 >
 >
 >
 >> Using interface ppp0
 >> Connect: ppp0 <--> /dev/modem
 >> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf600ab68>]
 >> rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x2e14>
 >> <pcomp> <accomp>]
 >> sent [LCP ConfRej id=0x1 <auth pap> <pcomp> <accomp>]
 >> rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf600ab68>]
 >> rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x2e14>]
 >> sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x2e14>]
 >> sent [IPCP ConfReq id=0x1 <addr 10.10.128.77> <compress VJ 0f 01>]
 >> rcvd [LCP EchoReq id=0x0 magic=0x2e14]
 >> sent [LCP EchoRep id=0x0 magic=0xf600ab68]
 >> rcvd [LCP TermReq id=0x3 "peer refused to authenticate"]
 >> LCP terminated by peer (peer refused to authenticate)
 >> sent [LCP TermAck id=0x3]
 >> Connection terminated.
 >>
 >>
 >> Is it really necesary to upgrade pppd version? I have downloaded
 >> ppp-2.4.1 and have successfuly compiled it, but when executing it, the
 >> board hangs.... So before I start to "destroy" the clean ppp-2.4.1
 >> version to trye to make it work, I thought that maybe someone could have
 >> already done the work. Is anyone using PAP/CHAP with uClinux-2.4.x?
 >>
 >> Thanks,
 >>
 >> David
 >>
 >> ========================================================
 >> David Beamonte Arbués
 >> Departamento de I+D
 >> TELNET Redes Inteligentes
 >> C/ Fco. Oliván Bayle Nº4
 >> 50015 - Zaragoza
 >> tel +34 976 20 36 36
 >> fax +34 976 20 09 96
 >> e-mail: dbeamonte@telnet-ri.es
 >> www.telnet-ri.es
 >>
 >>
 >> This message resent by the uclinux-dev@uclinux.org list server
 >> http://www.uClinux.org/
 >>
 >


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:54 EDT