Jump to content
Калькуляторы

Dlink 2500U_C-PPTP, Linux pptpd pptp на 2500c не хочет....

Очень плохо соединяется Dlink 2500U_C с pptpd сервером, из 20-30 попыток удачных может быть 1-2, windows клиенты подключаются без проблем.

Device Info

BoardID:     DSL-2500U
Software Version:     RU_1.21
Bootloader (CFE) Version:     1.0.37-12.1

прошивки пробовал рызные

 

вот что пишется в логах pptpd:

...
Aug 24 16:57:43 gw-01 pptpd[3905]: CTRL: Client 192.168.189.12 control connection finished
Aug 24 16:57:43 gw-01 pptpd[3915]: CTRL: Client 192.168.189.12 control connection started
Aug 24 16:57:44 gw-01 pptpd[3915]: CTRL: Starting call (launching pppd, opening GRE)
Aug 24 16:57:44 gw-01 pppd[3916]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Aug 24 16:57:44 gw-01 pppd[3916]: pptpd-logwtmp: $Version$
Aug 24 16:57:44 gw-01 pppd[3916]: pppd 2.4.4 started by root, uid 0
Aug 24 16:57:44 gw-01 pppd[3916]: using channel 32
Aug 24 16:57:44 gw-01 pppd[3916]: Using interface ppp1
Aug 24 16:57:44 gw-01 pppd[3916]: Connect: ppp1 <--> /dev/pts/1
Aug 24 16:57:44 gw-01 pppd[3916]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x5d8af299> <pcomp> <accomp>]
Aug 24 16:57:44 gw-01 pppd[3916]: rcvd [LCP ConfReq id=0x9 <asyncmap 0x0> <magic 0x819e49ea> <pcomp> <accomp>]
Aug 24 16:57:44 gw-01 pppd[3916]: sent [LCP ConfAck id=0x9 <asyncmap 0x0> <magic 0x819e49ea> <pcomp> <accomp>]
Aug 24 16:57:47 gw-01 pppd[3916]: rcvd [LCP ConfReq id=0x9 <asyncmap 0x0> <magic 0x819e49ea> <pcomp> <accomp>]
Aug 24 16:57:47 gw-01 pppd[3916]: sent [LCP ConfAck id=0x9 <asyncmap 0x0> <magic 0x819e49ea> <pcomp> <accomp>]
Aug 24 16:57:47 gw-01 pppd[3916]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x5d8af299> <pcomp> <accomp>]
Aug 24 16:57:50 gw-01 pppd[3916]: rcvd [LCP ConfReq id=0x9 <asyncmap 0x0> <magic 0x819e49ea> <pcomp> <accomp>]
Aug 24 16:57:50 gw-01 pppd[3916]: sent [LCP ConfAck id=0x9 <asyncmap 0x0> <magic 0x819e49ea> <pcomp> <accomp>]
Aug 24 16:57:50 gw-01 pppd[3916]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x5d8af299> <pcomp> <accomp>]
Aug 24 16:57:53 gw-01 pptpd[3915]: CTRL: Reaping child PPP[3916]
Aug 24 16:57:53 gw-01 pppd[3916]: Modem hangup
Aug 24 16:57:53 gw-01 pppd[3916]: Connection terminated.
Aug 24 16:57:53 gw-01 pppd[3916]: Exit.
Aug 24 16:57:53 gw-01 pptpd[3915]: CTRL: Client 192.168.189.12 control connection finished
Aug 24 16:57:53 gw-01 pptpd[3925]: CTRL: Client 192.168.189.12 control connection started
Aug 24 16:57:54 gw-01 pptpd[3925]: CTRL: Starting call (launching pppd, opening GRE)
Aug 24 16:57:54 gw-01 pppd[3926]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Aug 24 16:57:54 gw-01 pppd[3926]: pptpd-logwtmp: $Version$
Aug 24 16:57:54 gw-01 pppd[3926]: pppd 2.4.4 started by root, uid 0
Aug 24 16:57:54 gw-01 pppd[3926]: using channel 33
Aug 24 16:57:54 gw-01 pppd[3926]: Using interface ppp1
Aug 24 16:57:54 gw-01 pppd[3926]: Connect: ppp1 <--> /dev/pts/1
Aug 24 16:57:54 gw-01 pppd[3926]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xebc3885f> <pcomp> <accomp>]
Aug 24 16:57:54 gw-01 pppd[3926]: rcvd [LCP ConfReq id=0xa <asyncmap 0x0> <magic 0x1d25c939> <pcomp> <accomp>]
Aug 24 16:57:54 gw-01 pppd[3926]: sent [LCP ConfAck id=0xa <asyncmap 0x0> <magic 0x1d25c939> <pcomp> <accomp>]
Aug 24 16:57:57 gw-01 pppd[3926]: rcvd [LCP ConfReq id=0xa <asyncmap 0x0> <magic 0x1d25c939> <pcomp> <accomp>]
Aug 24 16:57:57 gw-01 pppd[3926]: sent [LCP ConfAck id=0xa <asyncmap 0x0> <magic 0x1d25c939> <pcomp> <accomp>]
Aug 24 16:57:57 gw-01 pppd[3926]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xebc3885f> <pcomp> <accomp>]
Aug 24 16:58:00 gw-01 pppd[3926]: rcvd [LCP ConfReq id=0xa <asyncmap 0x0> <magic 0x1d25c939> <pcomp> <accomp>]
Aug 24 16:58:00 gw-01 pppd[3926]: sent [LCP ConfAck id=0xa <asyncmap 0x0> <magic 0x1d25c939> <pcomp> <accomp>]
Aug 24 16:58:00 gw-01 pppd[3926]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xebc3885f> <pcomp> <accomp>]
Aug 24 16:58:03 gw-01 pptpd[3925]: CTRL: Reaping child PPP[3926]
Aug 24 16:58:03 gw-01 pppd[3926]: Modem hangup
Aug 24 16:58:03 gw-01 pppd[3926]: Connection terminated.
Aug 24 16:58:03 gw-01 pppd[3926]: Exit.
Aug 24 16:58:03 gw-01 pptpd[3925]: CTRL: Client 192.168.189.12 control connection finished
...

 

10 а то и 15 попыток и результат есть:

Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
pptpd-logwtmp: $Version$
using channel 34
Using interface ppp1
Connect: ppp1 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x6bff9227> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x93873205> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x93873205> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x6bff9227> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x6bff9227]
sent [CHAP Challenge id=0x70 <4b5d45e0358c4bd04d12783d6af031b1bf45bc5372ea>, name = "pptpd"]
rcvd [LCP EchoRep id=0x0 magic=0x93873205]
rcvd [CHAP Response id=0x70 <b7f238e94f2a48a605daced9160af4a1>, name = "extra0"]
sent [CHAP Success id=0x70 "Access granted"]
sent [IPCP ConfReq id=0x1 <addr 10ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
rcvd [IPCP ConfAck id=0x1 <addr 10.250.250.1>]
rcvd [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfNak id=0x2 <addr 10.250.250.102> <ms-dns1 10.250.250.1> <ms-dns3 10.250.250.1>]
rcvd [IPCP ConfReq id=0x3 <addr 10.250.250.102> <ms-dns1 10.250.250.1> <ms-dns3 10.250.250.1>]
sent [IPCP ConfAck id=0x3 <addr 10.250.250.102> <ms-dns1 10.250.250.1> <ms-dns3 10.250.250.1>]
Cannot determine ethernet address for proxy ARP
local  IP address 10.250.250.1
remote IP address 10.250.250.102
pptpd-logwtmp.so ip-up ppp1 extra0 192.168.189.12
Script /etc/ppp/ip-up started (pid 4335)
Script /etc/ppp/ip-up finished (pid 4335), status = 0x0

Как можно решить проблему ? ( выкинуть длинк не предлагать :) )

Edited by V1talya

Share this post


Link to post
Share on other sites

Нашел вот что:

20:47:55.981357 IP xxxx > 192.168.189.47: GREv1, call 3072, seq 36, length 1480: IP truncated-ip - 33 bytes missing!

Кто знает с чем это связанно ? и как лечить ? и может из-за этого не устанавливаться впн соединение между длинком и линукс сервером ?

Edited by V1talya

Share this post


Link to post
Share on other sites

У меня были похожие проблемы только на Acorp LAN422, тоже pptp не хотел цепляться к freebsd+mpd5, к windows2003+rras цеплялся, но работал с лагами.

Проблема где то в прошивке, он в логи постоянно пишет что пакеты потерялись.

 

В вашем случае я бы попробовал уменьшить MTU до 1400 в pppoe подключении или через чего вы пытаетесь законектится.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this