vpn over pppoe, регулярные обрывы pptp

Автор nanacano, 22 мая 2013, 15:39:38

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

nanacano

Добрый день
У меня следующая проблемы: 1) происходят регулярные обрывы pptp, при чем система этих обрывов мне не ясна. 2) после обрывов соединение не устанавливается по новой не смотря на мои настройки
У меня настроено pppoe + pptp соединение.

Соединение поднимается следующим образом:
pptp <xx.xx.xx.xx> call provider

где <xx.xx.xx.xx> адрес сервера подключения

После этого появляются 3 процесса в системе:
776 ?        S      0:00 pptp <xx.xx.xx.xx> call provider
  777 ?        S      0:00 /usr/sbin/pppd /dev/pts/3 38400 call provider
  783 ?        Ss     0:01 pptp <xx.xx.xx.xx> call provider



Вот с какими настройками я запускаю:
May 22 16:07:13 kui-router pppd[10107]: pppd options in effect:
May 22 16:07:13 kui-router pppd[10107]: debug#011#011# (from /etc/ppp/peers/provider)
May 22 16:07:13 kui-router pppd[10107]: holdoff 120#011#011# (from /etc/ppp/options)
May 22 16:07:13 kui-router pppd[10107]: persist#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: maxfail 0#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: dump#011#011# (from /etc/ppp/peers/provider)
May 22 16:07:13 kui-router pppd[10107]: noauth#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: refuse-pap#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: refuse-chap#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: refuse-mschap#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: refuse-eap#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: name kuipush#011#011# (from /etc/ppp/peers/provider)
May 22 16:07:13 kui-router pppd[10107]: #011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: pty pptp 37.131.209.56 --nolaunchpppd#011#011# (from /etc/ppp/peers/admina2)
May 22 16:07:13 kui-router pppd[10107]: crtscts#011#011# (from /etc/ppp/options)
May 22 16:07:13 kui-router pppd[10107]: #011#011# (from /etc/ppp/options)
May 22 16:07:13 kui-router pppd[10107]: asyncmap 0#011#011# (from /etc/ppp/options)
May 22 16:07:13 kui-router pppd[10107]: lcp-echo-failure 4#011#011# (from /etc/ppp/options)
May 22 16:07:13 kui-router pppd[10107]: lcp-echo-interval 30#011#011# (from /etc/ppp/options)
May 22 16:07:13 kui-router pppd[10107]: hide-password#011#011# (from /etc/ppp/options)
May 22 16:07:13 kui-router pppd[10107]: nobsdcomp#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: nodeflate#011#011# (from /etc/ppp/options.pptp)
May 22 16:07:13 kui-router pppd[10107]: require-mppe#011#011# (from /etc/ppp/peers/provider)
May 22 16:07:13 kui-router pppd[10107]: require-mppe-128#011#011# (from /etc/ppp/peers/provider)
May 22 16:07:13 kui-router pppd[10107]: noipx#011#011# (from /etc/ppp/options)


Через определенное время (если шлюз проработал долго то может сразу) это соединение как бы разрывается. «Как бы» потому что прекращает работу только один процесс, но не смотря на установки persist и maxfail 0 этот процесс не восстанавливается.
Вот что остается в процессах:
  777 ?        S      0:00 /usr/sbin/pppd /dev/pts/3 38400 call provider
  783 ?        Ss     0:01 pptp <xx.xx.xx.xx> call provider


вот что в syslog:

May 22 08:26:12 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 425725 (expecting 425721, lost or reordered)
May 22 08:26:12 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 425726 (expecting 425721, lost or reordered)
May 22 08:26:13 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 425731 (expecting 425727, lost or reordered)
May 22 08:26:13 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 425735 (expecting 425732, lost or reordered)
May 22 08:26:13 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 425736 (expecting 425732, lost or reordered)
May 22 08:26:13 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 425737 (expecting 425732, lost or reordered)
May 22 08:38:00 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 452128 (expecting 452126, lost or reordered)
May 22 08:42:04 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 455329 (expecting 455322, lost or reordered)
May 22 08:42:04 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 455330 (expecting 455322, lost or reordered)
May 22 08:42:04 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 455331 (expecting 455322, lost or reordered)
May 22 08:42:04 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 455332 (expecting 455322, lost or reordered)
May 22 08:42:04 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 455333 (expecting 455322, lost or reordered)
May 22 08:42:05 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 455334 (expecting 455322, lost or reordered)
May 22 08:42:05 kui-router pptp[1166]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 455335 (expecting 455322, lost or reordered)
May 22 11:21:11 kui-router pptp[1162]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
May 22 11:21:11 kui-router pptp[1162]: anon log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
May 22 11:21:11 kui-router pptp[1162]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
May 22 11:21:11 kui-router pptp[1162]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
May 22 11:21:11 kui-router pptp[1162]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
May 22 11:23:10 kui-router pppd[1163]: No response to 4 echo-requests
May 22 11:23:10 kui-router pppd[1163]: Serial link appears to be disconnected.
May 22 11:23:10 kui-router pppd[1163]: Connect time 1050.9 minutes.
May 22 11:23:10 kui-router pppd[1163]: Sent 381255050 bytes, received 375165773 bytes.
May 22 11:23:10 kui-router pppd[1163]: Script /etc/ppp/ip-down started (pid 7924)
May 22 11:23:10 kui-router pppd[1163]: MPPE disabled
May 22 11:23:10 kui-router pppd[1163]: sent [LCP TermReq id=0x2 "MPPE disabled"]
May 22 11:23:10 kui-router pppd[1163]: sent [LCP TermReq id=0x3 "MPPE disabled"]
May 22 11:23:10 kui-router pppd[1163]: Script /etc/ppp/ip-down finished (pid 7924), status = 0x0
May 22 11:23:13 kui-router pppd[1163]: sent [LCP TermReq id=0x4 "MPPE disabled"]
May 22 11:23:13 kui-router pppd[1163]: Connection terminated.
May 22 11:23:14 kui-router pppd[1163]: Modem hangup
May 22 11:25:14 kui-router pppd[1163]: using channel 6
May 22 11:25:14 kui-router pppd[1163]: Using interface ppp1
May 22 11:25:14 kui-router pppd[1163]: Connect: ppp1 <--> /dev/pts/0
May 22 11:25:14 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:17 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:20 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:23 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:26 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:29 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:32 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:35 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:38 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:41 kui-router pppd[1163]: sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0x4ec5d167> <pcomp> <accomp>]
May 22 11:25:44 kui-router pppd[1163]: LCP: timeout sending Config-Requests
May 22 11:25:44 kui-router pppd[1163]: Connection terminated.
May 22 11:25:45 kui-router pppd[1163]: Modem hangup
May 22 11:27:45 kui-router pppd[1163]: using channel 7
May 22 11:27:45 kui-router pppd[1163]: Using interface ppp1
May 22 11:27:45 kui-router pppd[1163]: Connect: ppp1 <--> /dev/pts/0
May 22 11:27:45 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:27:48 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:27:51 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:27:54 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:27:57 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:28:00 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:28:03 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:28:06 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:28:09 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:28:12 kui-router pppd[1163]: sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0x3ee89e48> <pcomp> <accomp>]
May 22 11:28:15 kui-router pppd[1163]: LCP: timeout sending Config-Requests
May 22 11:28:15 kui-router pppd[1163]: Connection terminated.


И так далее, видно что шлюз пытается поднять соединение но не может.

Соединение работает в целом хорошо, за исключением разрывов.
Подскажите как устранить разрывы и как настроить чтобы соединение восстанавливалось.

Anonymous

ты бы нормально обьяснил,как у тебя сеть устроена.
как настраиал ?

gardarea51

Я настраивал вот так: https://debianforum.ru/index.php?topic=4708.msg41428#msg41428
Работает сутками, не падает..

nanacano

Цитата: Anonymous от 23 мая 2013, 08:20:30
ты бы нормально обьяснил,как у тебя сеть устроена.
как настраиал ?

Конфигурация: с одной стороны (eth0) шлюза мы имеем шифровальное устройство vipnet и локальную сеть, с другой стороны – подключение к сети провайдера (eth1).

# The loopback network interface
auto lo eth1 eth0 ppp0
iface lo inet loopback
allow-hotplug eth0

# The primary network interface
iface eth0 inet static
address 192.168.90.1
netmask 255.255.255.248
broadcast 192.168.90.7
network 192.168.90.0

iface eth1 inet manual

iface ppp0 inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider pppoeprovider



Подключение к интернету производится через pppoe. Это соединение работает нормально. Вот настройки, файл options :

# /etc/ppp/options

asyncmap 0
auth
crtscts
lock
hide-password
modem

lcp-echo-interval 30
lcp-echo-failure 4

noipx
persist
maxfail 0
holdoff 120


Файл /etc/ppp/peers/pppoeprovider
noipdefault
hide-password

ipparam pppoeprovider
noauth
persist
mtu 1492

plugin rp-pppoe.so eth1
user "*****"
unit 0


Локальную сеть надо соединить с корпоративной, чтобы это сделать используется пакет pptp-client. Корпоративная сеть находится в том же городе и подключена через того же провайдера с pppoe подключением. То есть можно сказать vpn строится поверх двух pppoe подключений.

Файл options.pptp
# Sample PPTP PPP options file /etc/ppp/options.pptp
lock
noauth

refuse-pap
refuse-eap
refuse-chap
refuse-mschap

nobsdcomp
nodeflate

require-mppe
require-mppe-128


Файл provider содержит настройки pptp подключения
# PPTP Tunnel configuration for tunnel provider

file /etc/ppp/options.pptp
require-mppe
require-mppe-128

name ********
ipparam provider
debug
dump


файл etc/ppp/ip-up.d/provider_con
#!/bin/sh

if [ $PPP_IPPARAM = "pppoeprovider" ]; then
    ip route add xx.xxx.xxx.xx/21 dev ppp0
    wait
fi

if [ $PPP_IPPARAM = "provider" ]; then
    route add 192.168.1.0/24 via 192.168.7.254
    wait
fi


маршруты корпоративной сети шлюз получает посредством quagga. Настройки могу привести если нужно.
Проблемы 2:
1.Есть случайные регулярные разрывы pptp.
2.После разрывов соединение не восстанавливается (один процесс исчезает и не появляется снова), хотя по идее должно.

Если шлюз работает долго то сразу после подключения он может отрубить соединение:
May 24 17:55:37 kui-router pptp[1289]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
May 24 17:55:37 kui-router pptp[1296]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
May 24 17:55:37 kui-router pptp[1296]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
May 24 17:55:37 kui-router pptp[1296]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
May 24 17:55:38 kui-router pptp[1296]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
May 24 17:55:38 kui-router pptp[1296]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
May 24 17:55:38 kui-router pptp[1296]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 48896).
May 24 17:55:38 kui-router pppd[1289]: pppd options in effect:
May 24 17:55:38 kui-router pppd[1289]: debug#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: holdoff 120#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1289]: persist#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: maxfail 0#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: dump#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: noauth#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: refuse-pap#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: refuse-chap#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: refuse-mschap#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: refuse-eap#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: name kuipush#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: /dev/pts/1#011#011# (from command line)
May 24 17:55:38 kui-router pppd[1289]: 38400#011#011# (from command line)
May 24 17:55:38 kui-router pppd[1289]: lock#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: crtscts#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1289]: modem#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1289]: asyncmap 0#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1289]: lcp-echo-failure 4#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1289]: lcp-echo-interval 30#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1289]: hide-password#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1289]: ipparam provider#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: nobsdcomp#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: nodeflate#011#011# (from /etc/ppp/options.pptp)
May 24 17:55:38 kui-router pppd[1289]: require-mppe#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: require-mppe-128#011#011# (from /etc/ppp/peers/provider)
May 24 17:55:38 kui-router pppd[1289]: noipx#011#011# (from /etc/ppp/options)
May 24 17:55:38 kui-router pppd[1297]: pppd 2.4.5 started by root, uid 0
May 24 17:55:38 kui-router pppd[1297]: using channel 5
May 24 17:55:38 kui-router pppd[1297]: Using interface ppp1
May 24 17:55:38 kui-router pppd[1297]: Connect: ppp1 <--> /dev/pts/1
May 24 17:55:38 kui-router pppd[1297]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7433420b> <pcomp> <accomp>]
May 24 17:55:40 kui-router pppd[1297]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xedc41808> <pcomp> <accomp>]
May 24 17:55:40 kui-router pppd[1297]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xedc41808> <pcomp> <accomp>]
May 24 17:55:40 kui-router pppd[1297]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7433420b> <pcomp> <accomp>]
May 24 17:55:40 kui-router pppd[1297]: sent [LCP EchoReq id=0x0 magic=0x7433420b]
May 24 17:55:40 kui-router pppd[1297]: rcvd [LCP EchoReq id=0x0 magic=0xedc41808]
May 24 17:55:40 kui-router pppd[1297]: sent [LCP EchoRep id=0x0 magic=0x7433420b]
May 24 17:55:40 kui-router pppd[1297]: rcvd [CHAP Challenge id=0xca <2ed98249d0996e37a1a417093860765b>, name = "pptpd"]
May 24 17:55:40 kui-router pppd[1297]: sent [CHAP Response id=0xca <3b86dc4e81b6c8bc75ea28fc2c96bc9f00000000000000007e43eaf85de4ffd26a86219a5f6e04fc5923a66c71e15e5600>, name = "kuipush"]
May 24 17:55:40 kui-router pppd[1297]: rcvd [LCP EchoRep id=0x0 magic=0xedc41808]
May 24 17:55:41 kui-router pppd[1297]: rcvd [CHAP Success id=0xca "S=01FA5F86F23C3C0FC7D1381592F687DF1F1D4794 M=Access granted"]
May 24 17:55:41 kui-router pppd[1297]: CHAP authentication succeeded
May 24 17:55:41 kui-router pppd[1297]: sent [CCP ConfReq id=0x1 <mppe +H -M +S +L -D -C>]
May 24 17:55:41 kui-router pppd[1297]: rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
May 24 17:55:41 kui-router pppd[1297]: sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
May 24 17:55:41 kui-router pppd[1297]: rcvd [CCP ConfNak id=0x1 <mppe +H -M +S -L -D -C>]
May 24 17:55:41 kui-router pppd[1297]: sent [CCP ConfReq id=0x2 <mppe +H -M +S -L -D -C>]
May 24 17:55:41 kui-router pppd[1297]: rcvd [CCP ConfAck id=0x2 <mppe +H -M +S -L -D -C>]
May 24 17:55:41 kui-router pppd[1297]: MPPE 128-bit stateless compression enabled
May 24 17:55:41 kui-router pppd[1297]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
May 24 17:55:41 kui-router pppd[1297]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.7.254>]
May 24 17:55:41 kui-router pppd[1297]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 192.168.7.254>]
May 24 17:55:41 kui-router pppd[1297]: rcvd [IPCP ConfNak id=0x1 <addr 192.168.7.20>]
May 24 17:55:41 kui-router pppd[1297]: sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 192.168.7.20>]
May 24 17:55:41 kui-router pppd[1297]: rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 192.168.7.20>]
May 24 17:55:41 kui-router pppd[1297]: local  IP address 192.168.7.20
May 24 17:55:41 kui-router pppd[1297]: remote IP address 192.168.7.254
May 24 17:55:41 kui-router pppd[1297]: Script /etc/ppp/ip-up started (pid 1301)
May 24 17:55:41 kui-router pppd[1297]: Script /etc/ppp/ip-up finished (pid 1301), status = 0x0
May 24 17:56:09 kui-router pppd[1297]: Terminating on signal 15
May 24 17:56:09 kui-router pppd[1297]: Connect time 0.5 minutes.
May 24 17:56:09 kui-router pppd[1297]: Sent 50494 bytes, received 29643 bytes.
May 24 17:56:09 kui-router pppd[1297]: Script /etc/ppp/ip-down started (pid 1313)
May 24 17:56:09 kui-router pppd[1297]: MPPE disabled
May 24 17:56:09 kui-router pppd[1297]: sent [LCP TermReq id=0x2 "MPPE disabled"]
May 24 17:56:09 kui-router pppd[1297]: sent [LCP TermReq id=0x3 "MPPE disabled"]
May 24 17:56:09 kui-router pppd[1297]: Script /etc/ppp/ip-down finished (pid 1313), status = 0x0
May 24 17:56:09 kui-router pppd[1297]: rcvd [LCP TermAck id=0x2]

А вот логии при нормальном подключении:

May 24 17:53:26 kui-router pptp[1154]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
May 24 17:53:27 kui-router pptp[1161]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
May 24 17:53:27 kui-router pptp[1161]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
May 24 17:53:27 kui-router pptp[1161]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
May 24 17:53:28 kui-router pptp[1161]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
May 24 17:53:28 kui-router pptp[1161]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
May 24 17:53:28 kui-router pptp[1161]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 48640).
May 24 17:53:28 kui-router pppd[1154]: pppd options in effect:
May 24 17:53:28 kui-router pppd[1154]: debug#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: holdoff 120#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1154]: persist#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: maxfail 0#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: dump#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: noauth#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: refuse-pap#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: refuse-chap#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: refuse-mschap#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: refuse-eap#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: name kuipush#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: /dev/pts/1#011#011# (from command line)
May 24 17:53:28 kui-router pppd[1154]: 38400#011#011# (from command line)
May 24 17:53:28 kui-router pppd[1154]: lock#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: crtscts#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1154]: modem#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1154]: asyncmap 0#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1154]: lcp-echo-failure 4#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1154]: lcp-echo-interval 30#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1154]: hide-password#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1154]: ipparam provider#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: nobsdcomp#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: nodeflate#011#011# (from /etc/ppp/options.pptp)
May 24 17:53:28 kui-router pppd[1154]: require-mppe#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: require-mppe-128#011#011# (from /etc/ppp/peers/provider)
May 24 17:53:28 kui-router pppd[1154]: noipx#011#011# (from /etc/ppp/options)
May 24 17:53:28 kui-router pppd[1162]: pppd 2.4.5 started by root, uid 0
May 24 17:53:28 kui-router pppd[1162]: using channel 3
May 24 17:53:28 kui-router pppd[1162]: Using interface ppp1
May 24 17:53:28 kui-router pppd[1162]: Connect: ppp1 <--> /dev/pts/1
May 24 17:53:28 kui-router pppd[1162]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc3c0501b> <pcomp> <accomp>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x3e3db98f> <pcomp> <accomp>]
May 24 17:53:30 kui-router pppd[1162]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x3e3db98f> <pcomp> <accomp>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc3c0501b> <pcomp> <accomp>]
May 24 17:53:30 kui-router pppd[1162]: sent [LCP EchoReq id=0x0 magic=0xc3c0501b]
May 24 17:53:30 kui-router pppd[1162]: rcvd [LCP EchoReq id=0x0 magic=0x3e3db98f]
May 24 17:53:30 kui-router pppd[1162]: sent [LCP EchoRep id=0x0 magic=0xc3c0501b]
May 24 17:53:30 kui-router pppd[1162]: rcvd [CHAP Challenge id=0x4f <6fd982af7f278bfc2a592fb0da93a989>, name = "pptpd"]
May 24 17:53:30 kui-router pppd[1162]: sent [CHAP Response id=0x4f <ab3077c9ae8d4292f6f036669a84de4b0000000000000000339b0bda8ee4684eafe5a4afc27dd4f3f3ca715774da5bb000>, name = "kuipush"]
May 24 17:53:30 kui-router pppd[1162]: rcvd [LCP EchoRep id=0x0 magic=0x3e3db98f]
May 24 17:53:30 kui-router pppd[1162]: rcvd [CHAP Success id=0x4f "S=383489C24BA0463C05B981547B1F9FACCA3C66DA M=Access granted"]
May 24 17:53:30 kui-router pppd[1162]: CHAP authentication succeeded
May 24 17:53:30 kui-router kernel: [  143.567051] padlock: VIA PadLock Hash Engine not detected.
May 24 17:53:30 kui-router modprobe: FATAL: Error inserting padlock_sha (/lib/modules/2.6.32-5-686/kernel/drivers/crypto/padlock-sha.ko): No such device
May 24 17:53:30 kui-router kernel: [  143.576861] PPP MPPE Compression module registered
May 24 17:53:30 kui-router pppd[1162]: sent [CCP ConfReq id=0x1 <mppe +H -M +S +L -D -C>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
May 24 17:53:30 kui-router pppd[1162]: sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [CCP ConfNak id=0x1 <mppe +H -M +S -L -D -C>]
May 24 17:53:30 kui-router pppd[1162]: sent [CCP ConfReq id=0x2 <mppe +H -M +S -L -D -C>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [CCP ConfAck id=0x2 <mppe +H -M +S -L -D -C>]
May 24 17:53:30 kui-router pppd[1162]: MPPE 128-bit stateless compression enabled
May 24 17:53:30 kui-router pppd[1162]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.7.254>]
May 24 17:53:30 kui-router pppd[1162]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 192.168.7.254>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [IPCP ConfNak id=0x1 <addr 192.168.7.20>]
May 24 17:53:30 kui-router pppd[1162]: sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 192.168.7.20>]
May 24 17:53:30 kui-router pppd[1162]: rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 192.168.7.20>]
May 24 17:53:30 kui-router pppd[1162]: local  IP address 192.168.7.20
May 24 17:53:30 kui-router pppd[1162]: remote IP address 192.168.7.254
May 24 17:53:30 kui-router pppd[1162]: Script /etc/ppp/ip-up started (pid 1188)
May 24 17:53:30 kui-router pppd[1162]: Script /etc/ppp/ip-up finished (pid 1188), status = 0x0
May 24 17:53:30 kui-router pptp[1165]: anon warn[decaps_gre:pptp_gre.c:426]: discarding bogus packet 347 (expecting 12)
May 24 17:53:30 kui-router pptp[1165]: anon warn[decaps_gre:pptp_gre.c:426]: discarding bogus packet 348 (expecting 12)
May 24 17:53:30 kui-router pptp[1165]: anon warn[decaps_gre:pptp_gre.c:426]: discarding bogus packet 349 (expecting 12)
May 24 17:54:28 kui-router pptp[1161]: anon log[logecho:pptp_ctrl.c:677]: Echo Reply received.



Цитата: gardarea51 от 23 мая 2013, 08:33:44Я настраивал вот так: https://debianforum.ru/index.php?topic=4708.msg41428#msg41428
Работает сутками, не падает..
Я немного изменил свои настройки, теперь они по идее не отличаются от твоих.
но проблема осталась  :(