LINUX.ORG.RU
ФорумAdmin

Немогу соединится с VPN сервером (у меня АЛК 2.3 сервер винда 2003)


0

0

Суть проблемы в том, что когда у меня стоял ASP 7.3, все было ок, под Альтом никак. Если в /etc/pppd/options.pptp

noccp noauth require-mschat

то пишет:

Oct 20 12:08:48 serp pppd[2869]: pppd 2.4.2b3 started by root, uid 0 Oct 20 12:08:48 serp pptp[2870]: anon log[main:pptp.c:219]: The synchronous pptp option is NOT activated Oct 20 12:08:48 serp pppd[2869]: Serial connection established. Oct 20 12:08:48 serp pppd[2869]: using channel 12 Oct 20 12:08:48 serp pppd: Serial connection established. Oct 20 12:08:48 serp pppd: using channel 12 Oct 20 12:08:48 serp pptp[2873]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:630]: Client connection established. Oct 20 12:08:48 serp pppd[2869]: Using interface ppp0 Oct 20 12:08:48 serp pppd[2869]: Connect: ppp0 <--> /dev/pts/1 Oct 20 12:08:48 serp pppd: Using interface ppp0 Oct 20 12:08:48 serp pppd: Connect: ppp0 <--> /dev/pts/1 Oct 20 12:08:49 serp pppd[2869]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2e176899> <pcomp> <accomp>] Oct 20 12:08:49 serp pppd: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2e176899> <pcomp> <accomp>] Oct 20 12:08:49 serp pptp[2870]: anon log[decaps_hdlc:pptp_gre.c:217]: PPP mode seems to be Asynchronous. Oct 20 12:08:49 serp pptp[2873]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:759]: Outgoing call established (call ID 0, peer's call ID 256). Oct 20 12:08:52 serp pppd[2869]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2e176899> <pcomp> <accomp>] Oct 20 12:08:52 serp pppd: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2e176899> <pcomp> <accomp>] Oct 20 12:08:52 serp pppd[2869]: rcvd [LCP ConfReq id=0x0 <mru 1400> <auth eap> <magic 0x1b091e8b> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]> < 17 04 3d aa>] Oct 20 12:08:52 serp pppd[2869]: sent [LCP ConfRej id=0x0 <callback CBCP> <mrru 1614> < 17 04 3d aa>] Oct 20 12:08:52 serp pppd[2869]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2e176899> <pcomp> <accomp>] Oct 20 12:08:52 serp pppd[2869]: rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x1b091e8b> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>] Oct 20 12:08:52 serp pppd[2869]: sent [LCP ConfAck id=0x1 <mru 1400> <auth eap> <magic 0x1b091e8b> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>] Oct 20 12:08:52 serp pppd[2869]: rcvd [EAP Request id=0xd Identity <No message>] Oct 20 12:08:52 serp pppd[2869]: sent [EAP Response id=0xd Identity <Name "serp">] Oct 20 12:08:52 serp pppd: rcvd [LCP ConfReq id=0x0 <mru 1400> <auth eap> <magic 0x1b091e8b> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]> < 17 04 3d aa>] Oct 20 12:08:52 serp pppd: sent [LCP ConfRej id=0x0 <callback CBCP> <mrru 1614> < 17 04 3d aa>] Oct 20 12:08:52 serp pppd: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2e176899> <pcomp> <accomp>] Oct 20 12:08:52 serp pppd[2869]: rcvd [LCP TermReq id=0x3 1b 09 1e 8b 00 3c cd 74 00 00 02 b3] Oct 20 12:08:52 serp pppd[2869]: LCP terminated by peer (^[^I^^M-^K^@<M-Mt^@^@^BM-3) Oct 20 12:08:52 serp pppd[2869]: sent [LCP TermAck id=0x3] Oct 20 12:08:52 serp pppd: rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x1b091e8b> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>] Oct 20 12:08:52 serp pppd: sent [LCP ConfAck id=0x1 <mru 1400> <auth eap> <magic 0x1b091e8b> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>] Oct 20 12:08:52 serp pppd: rcvd [EAP Request id=0xd Identity <No message>] Oct 20 12:08:52 serp pppd: sent [EAP Response id=0xd Identity <Name "serp">] Oct 20 12:08:52 serp pppd: rcvd [LCP TermReq id=0x3 1b 09 1e 8b 00 3c cd 74 00 00 02 b3] Oct 20 12:08:52 serp pppd: LCP terminated by peer (^[^I^^M-^K^@<M-Mt^@^@^BM-3) Oct 20 12:08:52 serp pppd: sent [LCP TermAck id=0x3] Oct 20 12:08:52 serp pptp[2873]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0 Oct 20 12:08:52 serp pptp[2873]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]: send_accm is 00000000, recv_accm is FFFFFFFF Oct 20 12:08:52 serp pptp[2873]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0 Oct 20 12:08:52 serp pptp[2873]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]: send_accm is FFFFFFFF, recv_accm is FFFFFFFF Oct 20 12:08:55 serp pppd[2869]: Connection terminated.

Если убрать noauth и require-mschap (вроде их, непоню т.к. пишу из под виндов), то начинает писать типа немогу найти подходящий секрет... что за беда??? Может кто знает, как бороться?


Ответ на: комментарий от fagot

вот так вроде лучше...

Oct 20 11:02:08 serp pppd[6078]: pppd 2.4.2b3 started by root, uid 0
Oct 20 11:02:08 serp pptp[6079]: anon log[main:pptp.c:219]: The synchronous pptp option is NOT activated 
Oct 20 11:02:08 serp pppd[6078]: Serial connection established.
Oct 20 11:02:08 serp pptp[6083]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:630]: Client connection established.
Oct 20 11:02:08 serp pppd[6078]: using channel 1
Oct 20 11:02:08 serp pppd[6078]: Using interface ppp0
Oct 20 11:02:08 serp pppd[6078]: Connect: ppp0 <--> /dev/pts/2
Oct 20 11:02:09 serp pptp[6083]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:759]: Outgoing call established (call ID 0, peer's call ID 256). 
Oct 20 11:02:09 serp pppd[6078]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc7cf736d> <pcomp> <accomp>]
Oct 20 11:02:09 serp pptp[6079]: anon log[decaps_hdlc:pptp_gre.c:217]: PPP mode seems to be Asynchronous. 
Oct 20 11:02:09 serp pppd[6078]: rcvd [LCP ConfReq id=0x0 <mru 1400> <auth eap> <magic 0x29de3a7f> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]> < 17 04 3d 7b>]
Oct 20 11:02:09 serp pppd[6078]: sent [LCP ConfRej id=0x0 <callback CBCP> <mrru 1614> < 17 04 3d 7b>]
Oct 20 11:02:09 serp pppd[6078]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc7cf736d> <pcomp> <accomp>]
Oct 20 11:02:09 serp pppd[6078]: rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x29de3a7f> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>]
Oct 20 11:02:09 serp pppd[6078]: sent [LCP ConfAck id=0x1 <mru 1400> <auth eap> <magic 0x29de3a7f> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>]
Oct 20 11:02:09 serp pptp[6083]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 20 11:02:09 serp pptp[6083]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]:   send_accm is 00000000, recv_accm is FFFFFFFF
Oct 20 11:02:09 serp pppd[6078]: rcvd [EAP Request id=0x1 Identity <No message>]
Oct 20 11:02:09 serp pppd[6078]: sent [EAP Response id=0x1 Identity <Name "serp">]
Oct 20 11:02:09 serp pptp[6083]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 20 11:02:09 serp pppd[6078]: rcvd [LCP TermReq id=0x3 ")\37777777736:\177\000<\37777777715t\000\000\002\37777777663"]
Oct 20 11:02:09 serp pppd[6078]: LCP terminated by peer ()M-^:^?^@<M-Mt^@^@^BM-3)
Oct 20 11:02:09 serp pppd[6078]: sent [LCP TermAck id=0x3]
Oct 20 11:02:09 serp pptp[6083]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF
Oct 20 11:02:12 serp pppd[6078]: Connection terminated.
Oct 20 11:02:12 serp pppd[6078]: Waiting for 1 child processes...
Oct 20 11:02:12 serp pppd[6078]:   script /usr/sbin/pptp 10.5.50.5 --nolaunchpppd, pid 6079
Oct 20 11:02:12 serp pptp[6083]: anon log[callmgr_main:pptp_callmgr.c:236]: Closing connection
Oct 20 11:02:12 serp pptp[6083]: anon log[pptp_conn_close:pptp_ctrl.c:357]: Closing PPTP connection
Oct 20 11:02:14 serp pptp[6083]: anon log[call_callback:pptp_callmgr.c:76]: Closing connection
Oct 20 11:02:15 serp pppd[6078]: Script /usr/sbin/pptp 10.5.50.5 --nolaunchpppd finished (pid 6079), status = 0x0
Oct 20 11:02:15 serp pppd[6078]: Exit. 

NewBorn
() автор топика
Ответ на: комментарий от NewBorn

Кстати добавлю, туннель создавал скриптом pptp-config, вызываю командой pppd call vpn, где vpn имя туннеля и имя сервера в chap secrets

NewBorn
() автор топика

А почему бы не оставить только:

require-mschap-v2

p.S. первая версия, насколько я помню, давно не используется и использовалась редко - слабая безопасность на уровне проектирования.

jackill ★★★★★
()
Ответ на: комментарий от jackill

Я пробовал и то и то, уточню, пароль начинает спрашивать, как только убираю noauth из options.pptp, т.е. остается там:

noccp require-mschap-v2

NewBorn
() автор топика
Ответ на: комментарий от NewBorn

Когда спрашивает пароль, в логах выдает вот что:

Oct 22 11:23:20 serp pppd[1783]: pppd 2.4.2b3 started by root, uid 0
Oct 22 11:23:20 serp pppd[1783]: Serial connection established.
Oct 22 11:23:20 serp pptp[1784]: anon log[main:pptp.c:219]: The synchronous pptp option is NOT activated 
Oct 22 11:23:20 serp pptp[1788]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:630]: Client connection established.
Oct 22 11:23:20 serp pppd[1783]: using channel 1
Oct 22 11:23:20 serp pppd[1783]: Using interface ppp0
Oct 22 11:23:20 serp pppd[1783]: Connect: ppp0 <--> /dev/pts/1
Oct 22 11:23:21 serp pptp[1788]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:759]: Outgoing call established (call ID 0, peer's call ID 256). 
Oct 22 11:23:21 serp pppd[1783]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x707631d6> <pcomp> <accomp>]
Oct 22 11:23:21 serp pptp[1784]: anon log[decaps_hdlc:pptp_gre.c:217]: PPP mode seems to be Asynchronous. 
Oct 22 11:23:21 serp pppd[1783]: rcvd [LCP ConfReq id=0x0 <mru 1400> <auth eap> <magic 0x1df33de1> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]> < 17 04 40 95>]
Oct 22 11:23:21 serp pppd[1783]: sent [LCP ConfRej id=0x0 <callback CBCP> <mrru 1614> < 17 04 40 95>]
Oct 22 11:23:21 serp pppd[1783]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x707631d6> <pcomp> <accomp>]
Oct 22 11:23:21 serp pppd[1783]: rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x1df33de1> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>]
Oct 22 11:23:21 serp pppd[1783]: sent [LCP ConfAck id=0x1 <mru 1400> <auth eap> <magic 0x1df33de1> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>]
Oct 22 11:23:21 serp pptp[1788]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 22 11:23:21 serp pptp[1788]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]:   send_accm is 00000000, recv_accm is FFFFFFFF
Oct 22 11:23:21 serp pppd[1783]: rcvd [EAP Request id=0xe Identity <No message>]
Oct 22 11:23:21 serp pppd[1783]: sent [EAP Response id=0xe Identity <Name "serp">]
Oct 22 11:23:21 serp pptp[1788]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 22 11:23:21 serp pppd[1783]: rcvd [LCP TermReq id=0x3 1d f3 3d e1 00 3c cd 74 00 00 02 b3]
Oct 22 11:23:21 serp pppd[1783]: LCP terminated by peer (^]M-s=M-a^@<M-Mt^@^@^BM-3)
Oct 22 11:23:21 serp pppd[1783]: sent [LCP TermAck id=0x3]
Oct 22 11:23:21 serp pptp[1788]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF
Oct 22 11:23:24 serp pppd[1783]: Connection terminated.
Oct 22 11:23:24 serp pppd[1783]: Waiting for 1 child processes...
Oct 22 11:23:24 serp pppd[1783]:   script /usr/sbin/pptp 10.5.50.5 --nolaunchpppd, pid 1784
Oct 22 11:23:24 serp pptp[1788]: anon log[callmgr_main:pptp_callmgr.c:236]: Closing connection
Oct 22 11:23:24 serp pptp[1788]: anon log[pptp_conn_close:pptp_ctrl.c:357]: Closing PPTP connection
Oct 22 11:23:26 serp pptp[1788]: anon log[call_callback:pptp_callmgr.c:76]: Closing connection
Oct 22 11:23:27 serp pppd[1783]: Script /usr/sbin/pptp 10.5.50.5 --nolaunchpppd finished (pid 1784), status = 0x0
Oct 22 11:23:27 serp pppd[1783]: Exit. 


Тот лог, что я запостил сверху, это когда в options.pptp вообще нет никаких опций (по дефолту), при этом то что выводится в лог, дублируется на экран. А если в конфиге оставить все три параметра:
noccp
noauth
require-mschap-v2
после команды pppd call vpn вообще ничего не выдает, отрабатывает молча, но ifconfig показывает, что туннель не запущен. В логи при этом пишется:


Oct 22 11:24:23 serp pppd[1842]: pppd 2.4.2b3 started by root, uid 0
Oct 22 11:24:23 serp pptp[1843]: anon log[main:pptp.c:219]: The synchronous pptp option is NOT activated 
Oct 22 11:24:23 serp pppd[1842]: Serial connection established.
Oct 22 11:24:23 serp pppd[1842]: using channel 2
Oct 22 11:24:23 serp pppd[1842]: Using interface ppp0
Oct 22 11:24:23 serp pppd[1842]: Connect: ppp0 <--> /dev/pts/1
Oct 22 11:24:23 serp pptp[1848]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:630]: Client connection established.
Oct 22 11:24:24 serp pppd[1842]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x63f4ab0e> <pcomp> <accomp>]
Oct 22 11:24:24 serp pptp[1843]: anon log[decaps_hdlc:pptp_gre.c:217]: PPP mode seems to be Asynchronous. 
Oct 22 11:24:24 serp pptp[1848]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:759]: Outgoing call established (call ID 0, peer's call ID 256). 
Oct 22 11:24:27 serp pppd[1842]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x63f4ab0e> <pcomp> <accomp>]
Oct 22 11:24:27 serp pppd[1842]: rcvd [LCP ConfReq id=0x0 <mru 1400> <auth eap> <magic 0x65447440> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]> < 17 04 40 96>]
Oct 22 11:24:27 serp pppd[1842]: sent [LCP ConfRej id=0x0 <callback CBCP> <mrru 1614> < 17 04 40 96>]
Oct 22 11:24:27 serp pppd[1842]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x63f4ab0e> <pcomp> <accomp>]
Oct 22 11:24:27 serp pppd[1842]: rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x65447440> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>]
Oct 22 11:24:27 serp pppd[1842]: sent [LCP ConfAck id=0x1 <mru 1400> <auth eap> <magic 0x65447440> <pcomp> <accomp> <endpoint [local:a9.57.2b.60.ff.9d.48.fb.ab.e1.cd.1e.98.e3.76.40.00.00.00.00]>]
Oct 22 11:24:27 serp pptp[1848]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 22 11:24:27 serp pppd[1842]: rcvd [EAP Request id=0xf Identity <No message>]
Oct 22 11:24:27 serp pppd[1842]: sent [EAP Response id=0xf Identity <Name "serp">]
Oct 22 11:24:27 serp pptp[1848]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]:   send_accm is 00000000, recv_accm is FFFFFFFF
Oct 22 11:24:27 serp pppd[1842]: rcvd [LCP TermReq id=0x3 "eDt@\000<\37777777715t\000\000\002\37777777663"]
Oct 22 11:24:27 serp pppd[1842]: LCP terminated by peer (eDt@^@<M-Mt^@^@^BM-3)
Oct 22 11:24:27 serp pppd[1842]: sent [LCP TermAck id=0x3]
Oct 22 11:24:27 serp pptp[1848]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:823]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 22 11:24:27 serp pptp[1848]: anon log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:826]:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF
Oct 22 11:24:30 serp pppd[1842]: Connection terminated.
Oct 22 11:24:30 serp pppd[1842]: Waiting for 1 child processes...
Oct 22 11:24:30 serp pppd[1842]:   script /usr/sbin/pptp 10.5.50.5 --nolaunchpppd, pid 1843
Oct 22 11:24:30 serp pptp[1848]: anon log[callmgr_main:pptp_callmgr.c:236]: Closing connection
Oct 22 11:24:30 serp pptp[1848]: anon log[pptp_conn_close:pptp_ctrl.c:357]: Closing PPTP connection
Oct 22 11:24:32 serp pptp[1848]: anon log[call_callback:pptp_callmgr.c:76]: Closing connection
Oct 22 11:24:33 serp pppd[1842]: Script /usr/sbin/pptp 10.5.50.5 --nolaunchpppd finished (pid 1843), status = 0x0
Oct 22 11:24:33 serp pppd[1842]: Exit. 

NewBorn
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.