From: Andrey <andrey@fm.com.ua> To: community@altlinux.ru Subject: [Comm] PPP+ CBCP Date: Fri, 22 Jul 2005 10:31:32 +0300 Message-ID: <192070953.20050722103132@fm.com.ua> (raw) Hello community, в результате организации DialUp доступа с CallBackom, наступил на следующие грабли: # cat /var/log/all Jul 21 14:18:20 gate syslogd 1.4.1: restart. Jul 21 14:18:20 gate syslogd: syslogd startup succeeded Jul 21 14:18:20 gate syslogd: syslogd shutdown succeeded Jul 21 14:18:52 gate pppd[1973]: pppd 2.4.2 started by a_ppp, uid 0 Jul 21 14:18:52 gate pppd[1973]: using channel 9 Jul 21 14:18:52 gate pppd[1973]: Using interface ppp0 Jul 21 14:18:52 gate pppd[1973]: Connect: ppp0 <--> /dev/ttyS0 Jul 21 14:18:52 gate pppd[1973]: sent [LCP ConfReq id=0x1 <mru 576> <asyncmap 0x0> <auth pap> <magic 0x367daf4> <pcomp> <accomp>] Jul 21 14:18:52 gate pppd[1973]: rcvd [LCP ConfAck id=0x1 <mru 576> <asyncmap 0x0> <auth pap> <magic 0x367daf4> <pcomp> <accomp>] Jul 21 14:18:52 gate kernel: divert: not allocating divert_blk for non-ethernet device ppp0 Jul 21 14:18:52 gate kernel: divert: not allocating divert_blk for non-ethernet device ppp0 --- см. строки выше: так должно быть? ----- Jul 21 14:18:55 gate pppd[1973]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x461f164a> <pcomp> <accomp> <callback CBCP>] Jul 21 14:18:55 gate pppd[1973]: sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x461f164a> <pcomp> <accomp> <callback CBCP>] Jul 21 14:18:55 gate pppd[1973]: sent [LCP EchoReq id=0x0 magic=0x367daf4] Jul 21 14:18:55 gate pppd[1973]: cbcp_lowerup Jul 21 14:18:55 gate pppd[1973]: want: 0 Jul 21 14:18:55 gate pppd[1973]: rcvd [LCP code=0xc id=0x3 46 1f 16 4a 4d 53 52 41 53 56 35 2e 31 30] Jul 21 14:18:55 gate pppd[1973]: sent [LCP CodeRej id=0x2 0c 03 00 12 46 1f 16 4a 4d 53 52 41 53 56 35 2e 31 30] Jul 21 14:18:55 gate pppd[1973]: rcvd [LCP code=0xc id=0x4 46 1f 16 4a 4d 53 52 41 53 2d 30 2d 4a 55 4e 49 4f 52] Jul 21 14:18:55 gate pppd[1973]: sent [LCP CodeRej id=0x3 0c 04 00 16 46 1f 16 4a 4d 53 52 41 53 2d 30 2d 4a 55 4e 49 4f 52] Jul 21 14:18:55 gate pppd[1973]: rcvd [PAP AuthReq id=0x22 user="junior" password=<hidden>] Jul 21 14:18:55 gate pam_tcb[1973]: ppp: Authentication passed for junior from a_ppp(uid=0) Jul 21 14:18:55 gate pam_tcb[1973]: ppp: Session opened for junior by a_ppp(uid=0) Jul 21 14:18:55 gate pam_limits[1973]: checking if junior is in group root Jul 21 14:18:55 gate pppd[1973]: user junior logged in Jul 21 14:18:55 gate pppd[1973]: PAP peer authentication succeeded for junior Jul 21 14:19:05 gate pppd[1973]: LCP terminated by peer (F^_^VJ^@<M-Mt^@^@^@^@) Jul 21 14:19:06 gate pppd[1973]: Hangup (SIGHUP) Jul 21 14:19:06 gate pppd[1973]: Modem hangup Jul 21 14:19:06 gate pam_tcb[1973]: ppp: Session closed for junior Jul 21 14:19:06 gate pppd[1973]: Connection terminated. Jul 21 14:19:06 gate pppd[1973]: Connect time 0.3 minutes. Jul 21 14:19:06 gate pppd[1973]: Sent 0 bytes, received 0 bytes. Jul 21 14:19:06 gate pppd[1973]: tcgetattr: No such device or address (line 906) Jul 21 14:19:06 gate pppd[1973]: Connect time 0.3 minutes. Jul 21 14:19:06 gate pppd[1973]: Sent 0 bytes, received 0 bytes. Jul 21 14:19:06 gate pppd[1973]: tcsetattr: No such device or address (line 1000) Jul 21 14:19:06 gate pppd[1973]: Exit. Jul 21 14:19:06 gate kernel: divert: no divert_blk to free, ppp0 not ethernet Ошибку видно, но вот какова причина этой ошибки не могу понять. На какой девайс ругается функция? В двух словах о том что происходит: дозваниваюсь, модемы вяжутся, проходит аутентификация, после чего запрашивается номер для перезвона, обрыв и виндовая машина ждет перезвона, но... При отключении CallBack PPP работает нормально. Система: AltLinux Master 2.4 пакет PPP: ppp-2.4.2-alt6 (пробовал и на ppp-2.4.2-alt2 и на ppp-2.4.1-asp3) ядро: 2.4.26-std-up-alt12 (пробовал и на 2.4.26-alt6, -alt9) Конфигурация: 1./etc/mgetty+sendfax/login.config ............... /AutoPPP/ - a_ppp /usr/sbin/pppd callback server 2. /etc/inittab # /etc/inittab: init(8) configuration. # $Id: inittab,v 1.6 2003/05/21 12:25:51 ldv Exp $ ............... # Example how to put a getty on a modem line. # #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 T0:2345:respawn:/sbin/mgetty -x0 -s 57600 ttyS0 3. /etc/ppp/options auth -chap +pap login modem crtscts lock debug proxyarp mtu 576 mru 576 lcp-echo-interval 30 lcp-echo-failure 4 #cleardefaultroute netmask 255.255.255.0 10.0.10.1: ms-dns 10.0.10.1 ms-wins 10.0.10.2 4. /etc/ppp/pap-secrets # Secrets for authentication using PAP # client server secret IP addresses * * "" 10.0.10.100 5. /etc/ppp/callback-users #test * junior * * - 6. /etc/ppp/callback-server #!/bin/sh # Script callback-server # Script parameters: delay time in seconds, callback number DELAY="$1" NUMBER="$2" /usr/sbin/chat -v -t 2 "" \d+++\d\c OK ATH0 OK sleep $DELAY /usr/sbin/chat -v "" ATZ OK ATD$NUMBER CONNECT -- Best regards, Andrey mailto:andrey@fm.com.ua
reply other threads:[~2005-07-22 7:31 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=192070953.20050722103132@fm.com.ua \ --to=andrey@fm.com.ua \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git