Date: Sun, 28 Jul 1996 22:00:08 +0200 (MET DST) From: Darius Moos <moos@neuron.bsd.uni-passau.de> To: questions@FreeBSD.org Cc: hackers@FreeBSD.org Subject: FreeBSD-2.1-pppd/pap <-> Linux-2.x-PPP => VERY BIG problem Message-ID: <199607282000.WAA00702@neuron.bsd.uni-passau.de>
next in thread | raw e-mail | index | archive | help
Hi all, i'm having hell on earth configuring pppd (kernel-ppp) to work with PAP. Maybe someone could help me with this problem. First: I'm running FreeBSD-2.1(R) I have already run kernel-ppp succesfully to a FreeBSD-box (2.1R) and a Linux-box (1.x). I've also connected to the FreeBSD-box with CHAP. No problem. Next: I'm initiating the whole process from a bash-script with a case-statement: case $1 in . . deg) /usr/sbin/pppd -d connect "~/.ppp.deg.up <phone-nr.>" \ file ~/.ppprc.deg 0.0.0.0: /dev/cuaa1 ;; . . esac ~/.ppp.deg.up is also a bash-script for chat-dial: chat -v -t 90 "" atz0 OK atd$1 CONNECT "" ~/.ppprc.deg is the optionsfile specific to this connection: user moos name moos +pap -chap ipcp-accept-remote ~/.ppprc includes options common to all my personal connections: defaultroute /etc/ppp/options includes everytime-options for pppd: netmask 255.255.255.248 crtscts modem /etc/ppp/pap-secrets includes the client-server-password-data: moos * <my_password> Misc: My provider offers dial-in-lines for PPP using PAP-authentication with dynamic IPs running Linux (2.x). My username is moos. I don't know the server-name for the authentication, therefor i've put a '*' in the pap-secrets-file. He gave me the secret and it stands where i've written <my_password>. The HORRORSHOW: When i start the dialing-process nothing happens. No error on console. Here is the relevant part of the pppd-log-file: Jul 28 20:42:11 neuron pppd[556]: pppd 2.1.2 started by moos, uid 30001 Jul 28 20:42:35 neuron pppd[557]: Connected... Jul 28 20:42:36 neuron pppd[557]: Using interface ppp0 Jul 28 20:42:36 neuron pppd[557]: Connect: ppp0 <--> /dev/cuaa1 Jul 28 20:42:36 neuron pppd[557]: sent [LCP ConfReq id=0x1 <mru 1500> <auth upap> <magic 0x31ffa6c7> <pcomp> <accomp>] Jul 28 20:42:39 neuron pppd[557]: sent [LCP ConfReq id=0x1 <mru 1500> <auth upap> <magic 0x31ffa6c7> <pcomp> <accomp>] Jul 28 20:42:39 neuron pppd[557]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap 80> <magic 0x1b52> <pcomp> <accomp>] Jul 28 20:42:39 neuron pppd[557]: sent [LCP ConfRej id=0x0 <auth chap 80>] Jul 28 20:42:39 neuron pppd[557]: rcvd [LCP ConfRej id=0x1 <auth upap>] Jul 28 20:42:39 neuron pppd[557]: sent [LCP ConfReq id=0x2 <mru 1500> <magic 0x31ffa6c7> <pcomp> <accomp>] Jul 28 20:42:40 neuron pppd[557]: rcvd [LCP TermReq id=0x1 00 00 02 dc] Jul 28 20:42:40 neuron pppd[557]: sent [LCP TermAck id=0x1] Jul 28 20:42:42 neuron pppd[557]: sent [LCP ConfReq id=0x2 <mru 1500> <magic 0x31ffa6c7> <pcomp> <accomp>] Jul 28 20:43:07 neuron last message repeated 8 times Jul 28 20:43:10 neuron pppd[557]: LCP: timeout sending Config-Requests Jul 28 20:43:10 neuron pppd[557]: Connection terminated. Jul 28 20:43:10 neuron pppd[557]: Exit. More horror: - I've also tried using the auth-option. The result: Jul 27 15:19:03 neuron pppd[1024]: pppd 2.1.2 started by moos, uid 30001 Jul 27 15:19:27 neuron pppd[1025]: Connected... Jul 27 15:19:28 neuron pppd[1025]: Using interface ppp0 Jul 27 15:19:28 neuron pppd[1025]: Connect: ppp0 <--> /dev/cuaa1 Jul 27 15:19:28 neuron pppd[1025]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0x31f2f150> <pcomp> <accomp>] Jul 27 15:19:31 neuron pppd[1025]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0x31f2f150> <pcomp> <accomp>] Jul 27 15:19:31 neuron pppd[1025]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap 80> <magic 0x7bcf> <pcomp> <accomp>] Jul 27 15:19:31 neuron pppd[1025]: sent [LCP ConfNak id=0x0 <auth chap 05>] Jul 27 15:19:31 neuron pppd[1025]: rcvd [LCP ConfAck id=0x1 <mru 1500> <magic 0x31f2f150> <pcomp> <accomp>] Jul 27 15:19:31 neuron pppd[1025]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth 0xc027 01 00 00 01> <magic 0x7bcf> <pcomp> <accomp>] Jul 27 15:19:31 neuron pppd[1025]: sent [LCP ConfRej id=0x1 <auth 0xc027 01 00 00 01>] Jul 27 15:19:31 neuron pppd[1025]: rcvd [LCP TermReq id=0x2 00 00 02 dc] Jul 27 15:19:31 neuron pppd[1025]: sent [LCP TermAck id=0x2] Jul 27 15:19:34 neuron pppd[1025]: sent [LCP ConfReq id=0xff <mru 1500> <magic 0x31f2f150> <pcomp> <accomp>] Jul 27 15:20:01 neuron last message repeated 9 times Jul 27 15:20:04 neuron pppd[1025]: LCP: timeout sending Config-Requests Jul 27 15:20:04 neuron pppd[1025]: Connection terminated. Jul 27 15:20:04 neuron pppd[1025]: Exit. - I've tried without the options "auth [+-]pap [+-]chap". No success. - I've tried "* * <my_password>" in pap-secrets. No success. - I've tried "+ua <filename>" with user and password in <filename>. No success. - I've tried using CHAP. The result: Jul 27 15:33:24 neuron pppd[1071]: pppd 2.1.2 started by moos, uid 30001 Jul 27 15:33:47 neuron pppd[1072]: Connected... Jul 27 15:33:48 neuron pppd[1072]: Using interface ppp0 Jul 27 15:33:48 neuron pppd[1072]: Connect: ppp0 <--> /dev/cuaa1 Jul 27 15:33:48 neuron pppd[1072]: sent [LCP ConfReq id=0x1 <mru 1500> <auth chap 05> <magic 0x31ff4564> <pcomp> <accomp>] Jul 27 15:33:51 neuron pppd[1072]: sent [LCP ConfReq id=0x1 <mru 1500> <auth chap 05> <magic 0x31ff4564> <pcomp> <accomp>] Jul 27 15:33:51 neuron pppd[1072]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap 80> <magic 0x60ce> <pcomp> <accomp>] Jul 27 15:33:51 neuron pppd[1072]: sent [LCP ConfNak id=0x0 <auth chap 05>] Jul 27 15:33:52 neuron pppd[1072]: rcvd [LCP ConfRej id=0x1 <auth chap 05>] Jul 27 15:33:52 neuron pppd[1072]: sent [LCP ConfReq id=0x2 <mru 1500> <magic 0x31ff4564> <pcomp> <accomp>] Jul 27 15:33:52 neuron pppd[1072]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth 0xc027 01 00 00 01> <magic 0x60ce> <pcomp> <accomp>] Jul 27 15:33:52 neuron pppd[1072]: sent [LCP ConfRej id=0x1 <auth 0xc027 01 00 00 01>] Jul 27 15:33:52 neuron pppd[1072]: rcvd [LCP ConfAck id=0x2 <mru 1500> <magic 0x31ff4564> <pcomp> <accomp>] Jul 27 15:33:52 neuron pppd[1072]: rcvd [LCP TermReq id=0x2 00 00 02 dc] Jul 27 15:33:52 neuron pppd[1072]: sent [LCP TermAck id=0x2] Jul 27 15:33:55 neuron pppd[1072]: sent [LCP ConfReq id=0xff <mru 1500> <magic 0x31ff4564> <pcomp> <accomp>] Jul 27 15:34:22 neuron last message repeated 9 times Jul 27 15:34:25 neuron pppd[1072]: LCP: timeout sending Config-Requests Jul 27 15:34:25 neuron pppd[1072]: Connection terminated. Jul 27 15:34:25 neuron pppd[1072]: Exit. - I've tried making changes to /usr/src/usr.sbin/pppd/chap.h (I know this is NOT the right way to solve the problem): I changed #define CHAP_DIGEST_MD5 5 to #define CHAP_DIGEST_MD5 128 compiled and installed pppd. The result: Jul 27 17:49:21 neuron pppd[2428]: pppd 2.1.2 started by moos, uid 30001 Jul 27 17:49:44 neuron pppd[2429]: Connected... Jul 27 17:49:45 neuron pppd[2429]: Using interface ppp0 Jul 27 17:49:45 neuron pppd[2429]: Connect: ppp0 <--> /dev/cuaa1 Jul 27 17:49:45 neuron pppd[2429]: sent [LCP ConfReq id=0x1 <mru 1500> <auth chap 80> <magic 0x31fff551> <pcomp> <accomp>] Jul 27 17:49:48 neuron pppd[2429]: sent [LCP ConfReq id=0x1 <mru 1500> <auth chap 80> <magic 0x31fff551> <pcomp> <accomp>] Jul 27 17:49:49 neuron pppd[2429]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap 80> <magic 0x6ca0> <pcomp> <accomp>] Jul 27 17:49:49 neuron pppd[2429]: sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap 80> <magic 0x6ca0> <pcomp> <accomp>] Jul 27 17:49:49 neuron pppd[2429]: rcvd [LCP ConfRej id=0x1 <auth chap 80>] Jul 27 17:49:49 neuron pppd[2429]: sent [LCP ConfReq id=0x2 <mru 1500> <magic 0x31fff551> <pcomp> <accomp>] Jul 27 17:49:49 neuron pppd[2429]: rcvd [LCP ConfAck id=0x2 <mru 1500> <magic 0x31fff551> <pcomp> <accomp>] Jul 27 17:49:51 neuron pppd[2429]: rcvd [CHAP Challenge id=0x66 <7c4b5d06001cf056>, name = ""] Jul 27 17:49:51 neuron pppd[2429]: sent [CHAP Response id=0x66 <872c2f92d6c4ae3fb6fe9067860b8ac5>, name = ""] Jul 27 17:49:53 neuron pppd[2429]: rcvd [CHAP Challenge id=0x67 <12dfdce9c94b6340>, name = ""] Jul 27 17:49:53 neuron pppd[2429]: sent [CHAP Response id=0x67 <660020266cb6c283d19162396bc37fda>, name = ""] . . <Challenge - Responses repeatings deleted> . Jul 27 17:50:05 neuron pppd[2429]: rcvd [CHAP Challenge id=0x6d <ddf5a9f2411cd2af>, name = ""] Jul 27 17:50:05 neuron pppd[2429]: sent [CHAP Response id=0x6d <342b335f88174593703049bc0f6bcf1b>, name = ""] Jul 27 17:50:07 neuron pppd[2429]: rcvd [LCP TermReq id=0x1 00 00 02 ce] Jul 27 17:50:07 neuron pppd[2429]: LCP terminated at peer's request Jul 27 17:50:07 neuron pppd[2429]: sent [LCP TermAck id=0x1] Jul 27 17:50:10 neuron pppd[2429]: Connection terminated. Jul 27 17:50:10 neuron pppd[2429]: Exit. Conclusion: No end of the HORROR-show. Maybe there is someone on the net, who knows what's going on who knows where the problem is who knows a solution or workaround who would help me who knows that FreeBSD-2.1(R)-pppd and Linux-2.x-PPP can NOT work together I don't have the option of upgrading to FreeBSD-2.1.5(R) If upgrading would solve my problem, would it be possible to run a statically compiled pppd of FreeBSD-2.1.5 under FreeBSD-2.1 ? Please help me with this damned problem; i can't solve it on my own. Any help is appreciated. Many thanks in advance, bye Darius. email: moos@degnet.baynet.de moos@ithnet.com P.S.: Sorry for this mail being so long and thaks for reading it to this point.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607282000.WAA00702>