vpn pptp reconnect after disconnect ubuntu 9.04
apollovy gmail.com
17 01:36:25 BST 2009
здравствуй, сообщество
может, кто подскажет: что можно придумать, чтобы pptp соединение после
обрыва восстанавливалось (как в Windows)?
при соединении, простое и обрыве происходит вот что (/var/log/daemon.log)
Jul 10 18:14:05 mc-scrat-acer-1 NetworkManager: <info> Starting VPN service
'org.freedesktop.NetworkManager.pptp'...
Jul 10 18:14:05 mc-scrat-acer-1 NetworkManager: <info> VPN service
'org.freedesktop.NetworkManager.pptp' started
(org.freedesktop.NetworkManager.pptp), PID 9111
Jul 10 18:14:05 mc-scrat-acer-1 NetworkManager: <info> VPN service
'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
Jul 10 18:14:05 mc-scrat-acer-1 NetworkManager: <info> VPN plugin state
changed: 1
Jul 10 18:14:06 mc-scrat-acer-1 NetworkManager: <info> VPN plugin state
changed: 3
Jul 10 18:14:06 mc-scrat-acer-1 NetworkManager: <info> VPN connection
'VPN-соединение 1' (Connect) reply received.
Jul 10 18:14:06 mc-scrat-acer-1 pptp[9117]: nm-pptp-service-9111
log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Jul 10 18:14:06 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1
'Start-Control-Connection-Request'
Jul 10 18:14:06 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Jul 10 18:14:06 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Jul 10 18:14:07 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7
'Outgoing-Call-Request'
Jul 10 18:14:07 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Jul 10 18:14:07 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0,
peer's call ID 16768).
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> VPN connection
'VPN-соединение 1' (IP Config Get) reply received.
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager:
nm_ip4_config_add_nameserver: assertion `nameserver != s' failed
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> VPN Gateway:
10.1.1.208
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> Tunnel Device: ppp0
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> Internal IP4
Address: 192.168.180.230
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> Internal IP4 Prefix:
32
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> Internal IP4
Point-to-Point Address: 192.168.100.208
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> Maximum Segment Size
(MSS): 0
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> Internal IP4 DNS:
10.1.1.223
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> DNS Domain: '(none)'
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> Login Banner:
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info>
-----------------------------------------
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info> (null)
Jul 10 18:14:07 mc-scrat-acer-1 NetworkManager: <info>
-----------------------------------------
Jul 10 18:14:08 mc-scrat-acer-1 NetworkManager: <info> VPN connection
'VPN-соединение 1' (IP Config Get) complete.
Jul 10 18:14:08 mc-scrat-acer-1 NetworkManager: <info> Policy set
'VPN-соединение 1' (ppp0) as default for routing and DNS.
Jul 10 18:14:08 mc-scrat-acer-1 NetworkManager: <info> VPN plugin state
changed: 4
Jul 10 18:14:08 mc-scrat-acer-1 nm-dispatcher.action: Script
'/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.
Jul 10 18:14:24 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Jul 10 18:14:24 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Jul 10 18:14:24 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12
'Call-Clear-Request'
Jul 10 18:14:24 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Jul 10 18:14:24 mc-scrat-acer-1 pptp[9126]: nm-pptp-service-9111
log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Jul 10 18:14:24 mc-scrat-acer-1 NetworkManager: <info> VPN plugin state
changed: 5
Jul 10 18:14:24 mc-scrat-acer-1 NetworkManager: <info> VPN plugin state
changed: 6
Jul 10 18:14:24 mc-scrat-acer-1 NetworkManager: <info> VPN plugin state
change reason: 0
Jul 10 18:14:24 mc-scrat-acer-1 NetworkManager: <WARN>
connection_state_changed(): Could not process the request because no VPN
connection was active.
Jul 10 18:14:24 mc-scrat-acer-1 NetworkManager:
nm_system_device_flush_ip4_routes_with_iface: assertion `iface_idx >= 0'
failed
Jul 10 18:14:24 mc-scrat-acer-1 NetworkManager:
nm_system_device_flush_ip4_addresses_with_iface: assertion `iface_idx >= 0'
failed
Jul 10 18:14:25 mc-scrat-acer-1 NetworkManager: <info> Policy set 'Auto
mc-scrat-wlan' (wlan0) as default for routing and DNS.
Jul 10 18:14:25 mc-scrat-acer-1 nm-dispatcher.action: Script
'/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.
нельзя ли поставить обработчик последовательности записей в логе, чтобы при
их появлении запускался скриптик на поднятие искомого ВПНа?
в Гугле гуглил - не нашёл. на форумах по данному вопросу - тишина. можно,
думаю, в /etc/inittab прописать - но это, согласитесь, извращение. готов
посодействовать созданию скрипта в силу возможностей, умений и сил =)
----------- -----------
Вложение в формате HTML было извлечено…
URL: https://lists.ubuntu.com/archives/ubuntu-ru/attachments/20090717/05d88205/attachment-0001.htm
ubuntu-ru