* [Comm] настройка ppp на ms-chap-v2
@ 2005-07-12 8:19 Серебряков Владимир Анатольевич
0 siblings, 0 replies; only message in thread
From: Серебряков Владимир Анатольевич @ 2005-07-12 8:19 UTC (permalink / raw)
To: community
Народ, кто нить сталкивался с настройкой ppp, когда у провайдена ms-chap протокол v2
Если есть время и желание - посмотрите как пытался настроить;)
Мож кто кинет сцылку на подробную доку (для чайников)
Скрипты:
Ppp-on:
---------------
TELEPHONE=222333
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.255.0
export TELEPHONE
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd /dev/modem 57600 connect $LOCAL_IP:$REMOTE_IP netmask $NETMASK connect $DIALER_SCRIPT
Ppp-on-dialer:
----------------
#!/bin/sh
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
'' ATA \
CONNECT ''
Options:
-----------------
lock
require-mschap-v2
lcp-max-configure 40
modem
crtscts
debug
kdebug 0
-detach
Модем дозванивается, долго торгуется и выдает:
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xa7255a43> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xa7255a43> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x4f <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x4f <auth pap>]
rcvd [LCP ConfNak id=0x1 <auth chap MD5>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xa7255a43> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x50 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x50 <auth pap>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0xa7255a43> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x51 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x51 <auth pap>]
rcvd [LCP ConfReq id=0x52 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x52 <auth pap>]
rcvd [LCP ConfReq id=0x53 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x53 <auth pap>]
rcvd [LCP ConfReq id=0x54 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x54 <auth pap>]
rcvd [LCP ConfReq id=0x55 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x55 <auth pap>]
rcvd [LCP ConfReq id=0x56 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x56 <auth pap>]
rcvd [LCP ConfReq id=0x57 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x57 <auth pap>]
rcvd [LCP ConfReq id=0x58 <asyncmap 0xa0000> <auth pap> <magic 0x29090710> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x58 <auth pap>]
rcvd [LCP TermReq id=0x59]
sent [LCP TermAck id=0x59]
Modem hangup
Connection terminated.
В логах:
-------------------
pppd 2.4.2b3 started by root, uid 0
timeout set to 3 seconds
abort on (\nBUSY\r)
abort on (\nNO ANSWER\r)
abort on (\nRINGING\r\n\r\nRINGING\r)
send (rAT^M)
expect (OK)
rAT^M^M
OK
-- got it
send (ATH0^M)
timeout set to 30 seconds
expect (OK)
^M
ATH0^M^M
OK
-- got it
send (ATDT222333^M)
send (ATA^M)
expect (CONNECT)
^M
ATDT9737649^MA^M
CONNECT
-- got it
send (^M)
expect (~)
50666/ARQ^M
Unauthorized use is prohibited.^M
alarm
send (^M)
send (^M)
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/modem
Modem hangup
Connection terminated.
Exit.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-12 8:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-12 8:19 [Comm] настройка ppp на ms-chap-v2 Серебряков Владимир Анатольевич
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