Страница 1 из 1

mp5 pptp-клиент разрыв

Добавлено: 2012-06-10 15:40:35
DeN_238
Доброго!
Коллективный разум подскажи: линк PPTP держится около минуты, затем разрыв, соединение и так циклично.
Так-же пробовал железным роутером (MikroTik RB751G-2HnD) подключаться, такая-же ситуация :-(
А вот простейший D-Link DIR-320, работает стабильно (ну относительно, хотя бы линк не разрывает).
Буду благодарен за любую помощь.
Конфиг и лог MPD ниже

Код: Выделить всё

startup:
        # configure mpd users
        set user foo bar admin
        set user foo1 bar1
        # configure the console
        set console self 127.0.0.1 5005
        set console open
        # configure the web server
        set web self 0.0.0.0 5006
        set web open

default:
    load pptp_client

pptp_client:
    create bundle static B1
    set bundle enable multilink
    set iface route default
    set ipcp ranges 0.0.0.0/0 0.0.0.0/0

    create link static L1 pptp
    set link action bundle B1
    set auth authname "ЛОГИН"
    set auth password "ПАРОЛЬ"
    set link max-redial 0
    set link mtu 1460
    set link keep-alive 20 75
    set pptp peer 10.1.2.11
    set pptp disable windowing
    open

Код: Выделить всё

Jun 10 15:28:33 gate mpd: process 65038 started, version 5.6 (root@gate.local 16:09  4-Feb-2012)
Jun 10 15:28:33 gate mpd: CONSOLE: listening on 127.0.0.1 5005
Jun 10 15:28:33 gate mpd: web: listening on 0.0.0.0 5006
Jun 10 15:28:33 gate mpd: [B1] Bundle: Interface ng0 created
Jun 10 15:28:33 gate mpd: [L1] Link: OPEN event
Jun 10 15:28:33 gate mpd: [L1] LCP: Open event
Jun 10 15:28:33 gate mpd: [L1] LCP: state change Initial --> Starting
Jun 10 15:28:33 gate mpd: [L1] LCP: LayerStart
Jun 10 15:28:33 gate mpd: [L1] PPTP call successful
Jun 10 15:28:33 gate mpd: [L1] Link: UP event
Jun 10 15:28:33 gate mpd: [L1] LCP: Up event
Jun 10 15:28:33 gate mpd: [L1] LCP: state change Starting --> Req-Sent
Jun 10 15:28:33 gate mpd: [L1] LCP: SendConfigReq #1
Jun 10 15:28:33 gate mpd: [L1]   ACFCOMP
Jun 10 15:28:33 gate mpd: [L1]   PROTOCOMP
Jun 10 15:28:33 gate mpd: [L1]   ACCMAP 0x000a0000
Jun 10 15:28:33 gate mpd: [L1]   MRU 1500
Jun 10 15:28:33 gate mpd: [L1]   MAGICNUM 0c6fbb54
Jun 10 15:28:33 gate mpd: [L1] LCP: rec'd Configure Request #1 (Req-Sent)
Jun 10 15:28:33 gate mpd: [L1]   MRU 1000
Jun 10 15:28:33 gate mpd: [L1]   ACCMAP 0x00000000
Jun 10 15:28:33 gate mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Jun 10 15:28:33 gate mpd: [L1]   MAGICNUM 25d28723
Jun 10 15:28:33 gate mpd: [L1]   PROTOCOMP
Jun 10 15:28:33 gate mpd: [L1]   ACFCOMP
Jun 10 15:28:33 gate mpd: [L1] LCP: SendConfigAck #1
Jun 10 15:28:33 gate mpd: [L1]   MRU 1000
Jun 10 15:28:33 gate mpd: [L1]   ACCMAP 0x00000000
Jun 10 15:28:33 gate mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Jun 10 15:28:33 gate mpd: [L1]   MAGICNUM 25d28723
Jun 10 15:28:33 gate mpd: [L1]   PROTOCOMP
Jun 10 15:28:33 gate mpd: [L1]   ACFCOMP
Jun 10 15:28:33 gate mpd: [L1] LCP: state change Req-Sent --> Ack-Sent
Jun 10 15:28:33 gate mpd: [L1] LCP: rec'd Configure Ack #1 (Ack-Sent)
Jun 10 15:28:33 gate mpd: [L1]   ACFCOMP
Jun 10 15:28:33 gate mpd: [L1]   PROTOCOMP
Jun 10 15:28:33 gate mpd: [L1]   ACCMAP 0x000a0000
Jun 10 15:28:33 gate mpd: [L1]   MRU 1500
Jun 10 15:28:33 gate mpd: [L1]   MAGICNUM 0c6fbb54
Jun 10 15:28:33 gate mpd: [L1] LCP: state change Ack-Sent --> Opened
Jun 10 15:28:33 gate mpd: [L1] LCP: auth: peer wants CHAP, I want nothing
Jun 10 15:28:33 gate mpd: [L1] LCP: LayerUp
Jun 10 15:28:33 gate mpd: [L1] CHAP: rec'd CHALLENGE #119 len: 26
Jun 10 15:28:33 gate mpd: [L1]   Name: "pptpd"
Jun 10 15:28:33 gate mpd: [L1] CHAP: Using authname "kit"
Jun 10 15:28:33 gate mpd: [L1] CHAP: sending RESPONSE #119 len: 57
Jun 10 15:28:33 gate mpd: [L1] CHAP: rec'd SUCCESS #119 len: 46
Jun 10 15:28:33 gate mpd: [L1]   MESG: S=CF46AB699212DC970D68A778A08263CC7612B489
Jun 10 15:28:33 gate mpd: [L1] LCP: authorization successful
Jun 10 15:28:33 gate mpd: [L1] Link: Matched action 'bundle "B1" ""'
Jun 10 15:28:33 gate mpd: [L1] Link: Join bundle "B1"
Jun 10 15:28:33 gate mpd: [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Jun 10 15:28:33 gate mpd: [B1] IPCP: Open event
Jun 10 15:28:33 gate mpd: [B1] IPCP: state change Initial --> Starting
Jun 10 15:28:33 gate mpd: [B1] IPCP: LayerStart
Jun 10 15:28:33 gate mpd: [B1] IPCP: Up event
Jun 10 15:28:33 gate mpd: [B1] IPCP: state change Starting --> Req-Sent
Jun 10 15:28:33 gate mpd: [B1] IPCP: SendConfigReq #1
Jun 10 15:28:33 gate mpd: [B1]   IPADDR 0.0.0.0
Jun 10 15:28:33 gate mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Jun 10 15:28:33 gate mpd: [L1] rec'd unexpected protocol CCP, rejecting
Jun 10 15:28:33 gate mpd: [B1] IPCP: rec'd Configure Request #1 (Req-Sent)
Jun 10 15:28:33 gate mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
Jun 10 15:28:33 gate mpd: [B1]   IPADDR 10.1.2.11
Jun 10 15:28:33 gate mpd: [B1]     10.1.2.11 is OK
Jun 10 15:28:33 gate mpd: [B1] IPCP: SendConfigAck #1
Jun 10 15:28:33 gate mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
Jun 10 15:28:33 gate mpd: [B1]   IPADDR 10.1.2.11
Jun 10 15:28:33 gate mpd: [B1] IPCP: state change Req-Sent --> Ack-Sent
Jun 10 15:28:33 gate mpd: [B1] IPCP: rec'd Configure Nak #1 (Ack-Sent)
Jun 10 15:28:33 gate mpd: [B1]   IPADDR ВНЕШНИЙ_IP_АДРЕС
Jun 10 15:28:33 gate mpd: [B1]     ВНЕШНИЙ_IP_АДРЕС is OK
Jun 10 15:28:33 gate mpd: [B1] IPCP: SendConfigReq #2
Jun 10 15:28:33 gate mpd: [B1]   IPADDR ВНЕШНИЙ_IP_АДРЕС
Jun 10 15:28:33 gate mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Jun 10 15:28:33 gate mpd: [B1] IPCP: rec'd Configure Ack #2 (Ack-Sent)
Jun 10 15:28:33 gate mpd: [B1]   IPADDR ВНЕШНИЙ_IP_АДРЕС
Jun 10 15:28:33 gate mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Jun 10 15:28:33 gate mpd: [B1] IPCP: state change Ack-Sent --> Opened
Jun 10 15:28:33 gate mpd: [B1] IPCP: LayerUp
Jun 10 15:28:33 gate mpd: [B1]   ВНЕШНИЙ_IP_АДРЕС -> 10.1.2.11
Jun 10 15:28:33 gate mpd: [B1] IFACE: Up event
Jun 10 15:29:16 gate mpd: [L1] LCP: rec'd Terminate Request #2 (Opened)
Jun 10 15:29:16 gate mpd: [L1] LCP: state change Opened --> Stopping
Jun 10 15:29:16 gate mpd: [L1] Link: Leave bundle "B1"
Jun 10 15:29:16 gate mpd: [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Jun 10 15:29:16 gate mpd: [B1] IPCP: Close event
Jun 10 15:29:16 gate mpd: [B1] IPCP: state change Opened --> Closing
Jun 10 15:29:16 gate mpd: [B1] IPCP: SendTerminateReq #3
Jun 10 15:29:16 gate mpd: [B1] IPCP: LayerDown
Jun 10 15:29:16 gate mpd: [B1] IFACE: Down event
Jun 10 15:29:16 gate mpd: [B1] IPCP: Down event
Jun 10 15:29:16 gate mpd: [B1] IPCP: LayerFinish
Jun 10 15:29:16 gate mpd: [B1] Bundle: No NCPs left. Closing links...
Jun 10 15:29:16 gate mpd: [B1] IPCP: state change Closing --> Initial
Jun 10 15:29:16 gate mpd: [L1] LCP: SendTerminateAck #2
Jun 10 15:29:16 gate mpd: [L1] LCP: LayerDown
Jun 10 15:29:18 gate mpd: [L1] LCP: state change Stopping --> Stopped
Jun 10 15:29:18 gate mpd: [L1] LCP: LayerFinish
Jun 10 15:29:18 gate mpd: [L1] PPTP call terminated
Jun 10 15:29:18 gate mpd: [L1] Link: DOWN event
Jun 10 15:29:18 gate mpd: [L1] LCP: Down event
Jun 10 15:29:18 gate mpd: [L1] LCP: state change Stopped --> Starting
Jun 10 15:29:18 gate mpd: [L1] LCP: LayerStart
Jun 10 15:29:18 gate mpd: [L1] Link: reconnection attempt 1 in 4 seconds
Jun 10 15:29:22 gate mpd: caught fatal signal int
Jun 10 15:29:22 gate mpd: [B1] IFACE: Close event
Jun 10 15:29:22 gate mpd: [B1] IPCP: Close event
Jun 10 15:29:22 gate mpd: [L1] LCP: Close event
Jun 10 15:29:22 gate mpd: [L1] LCP: state change Starting --> Initial
Jun 10 15:29:22 gate mpd: [L1] LCP: LayerFinish
Jun 10 15:29:24 gate mpd: [B1] Bundle: Shutdown
Jun 10 15:29:24 gate mpd: [L1] Link: Shutdown
Jun 10 15:29:24 gate mpd: process 65038 terminated

Re: mp5 pptp-клиент разрыв

Добавлено: 2012-06-11 8:34:44
FreeBSP
есть ли необходимые маршруты? после подъема интерфейса? гуглить/искать up-down скрипты
разрешено ли в фаере ходить данным по ng* интерфейсу

Re: mp5 pptp-клиент разрыв

Добавлено: 2012-06-11 11:02:37
DeN_238
FreeBSP писал(а):есть ли необходимые маршруты? после подъема интерфейса? гуглить/искать up-down скрипты
разрешено ли в фаере ходить данным по ng* интерфейсу
Интерфейс получает все параметры по DHCP. VPN-сервер доступен сразу после подключения кабеля.

Код: Выделить всё

lease {
  interface "re0";
  fixed-address 10.1.2.82;
  option subnet-mask 255.255.255.0;
  option routers 10.1.2.10;
  option domain-name-servers 10.1.2.11,91.197.194.78,91.197.192.3,91.197.193.3;
  option domain-name "tltcity.local";
  option broadcast-address 10.1.2.255;
  option dhcp-lease-time 259200;
  option dhcp-message-type 5;
  option dhcp-server-identifier 10.1.2.11;
  renew 1 2012/6/11 20:59:43;
  rebind 2 2012/6/12 23:59:43;
  expire 3 2012/6/13 08:59:43;
}
Фаер в открытом состоянии пока.

Re: mp5 pptp-клиент разрыв

Добавлено: 2012-06-11 11:11:15
DeN_238
ЗЫ есть немного информации со стороны провайдера:

Код: Выделить всё

Cannot determine ethernet address for proxy ARP
local IP address 10.1.2.11
remote IP address МОЙ_ВНЕШНИЙ_IP
LCP terminated by peer (^A^Q^ZE^@<M-Mt^@^@^@^@)

Re: mp5 pptp-клиент разрыв

Добавлено: 2012-06-13 2:30:30
FreeBSP
маршруты?
до запуска mpd и после подъема интерфейса(пока он поднялся на минуту)

Re: mp5 pptp-клиент разрыв

Добавлено: 2012-06-13 5:49:23
DeN_238
FreeBSP писал(а):маршруты?
до запуска mpd и после подъема интерфейса(пока он поднялся на минуту)
К сожалению, сейчас под рукой только маршруты с МикроТика. Но они одинаковые .
http://clck.ru/d/G2y0Fp2o1B5TI ситуация ДО поднятия ППТП. 10.1.2.88 - ИПшник (em0 если по фряшному) получаемый из сети провайдера. 192.168.1.1 - ИПшник (em1) сетевушки смотрящей в локалку. Маршрут в сеть 10.1.2.0 получаем из сети провайдера. Т.е. сразу после подключения кабеля ВПН-сервер находится в нужной нам сети (так-же, по аналогии с домашним провайдером, пробовал дописывать статический маршрут до ВПН-сервера - тот-же результат).
http://clck.ru/d/cfz_C1V-1B5TM ситуация ПОСЛЕ поднятия ППТП. На фре соответственно создаётся ng0 (МОЙ_ВНЕШНИЙ_ИП=>10.1.2.11), и изменяется дефаулт-роут на 10.1.2.11.

Re: mp5 pptp-клиент разрыв

Добавлено: 2012-06-13 20:04:11
FreeBSP
попробуй прокси арп включить
http://mpd.sourceforge.net/doc5/mpd28.html