* [Comm] ifup-pptp PERSISTant connection. Reestablish after disconnect
@ 2004-12-12 23:40 KupuJIJI
0 siblings, 0 replies; only message in thread
From: KupuJIJI @ 2004-12-12 23:40 UTC (permalink / raw)
To: community
Привет всем.
У меня возникла небольшая проблема. Есть PPTP туннель (VPN). Я - клиент. На сервере жесткая политика - раз в 5 часов обрывает соединение (maxconnect). Мне же нужно чтоб после разрыва клиент сам восстанавливал соединение.
Поднимается туннель через ifcfg-pptp0. Поднимается при старте (ONBOOT=yes), но
опцию PERSIST=yes ifup просто игнорирует. При разрыве линка связь автоматически не восстанавливается. В логах даже не отображаются попытки восстановить соединение. приходится ручками давать команду ifup pptp0.
КОНФИГИ:
===========/etc/sysconfig/network-scripts/ifcfg-pptp0========
DEVICE=pptp0
ONBOOT=yes
PPTP_SERVER_IP="10.1.0.210"
PAPNAME=azazello
DEFROUTE=yes
PERSIST=yes
RETRYCONNECT=yes
DISCONNECTTIMEOUT=5
RETRYTIMEOUT=5
=============================================================
перезапускаем сервис network
[root@localhost network-scripts]# service network restart
Shutting down interface eth0: [ DONE ]
Configuring kernel parameters: [ DONE ]
Bringing up interface lo: [ DONE ]
Bringing up interface eth0: [ DONE ]
Bringing up interface pptp0: [ DONE ]
[root@localhost network-scripts]#
всё ок. линк ppp0 поднялся, инет есть.
в логах тоже всё как надо
потом разрыв по инициативе удаленной стороны
ppp0 упал
в логах вот что об этом говорится (почему-то дважды):
==============================================================================
Dec 13 02:32:15 azazello pptp[7101]: anon log[pptp_read_some:pptp_ctrl.c:525]: read returned zero, peer has closed
Dec 13 02:32:15 azazello pptp[7101]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Dec 13 02:32:15 azazello pppd[7105]: Modem hangup
Dec 13 02:32:15 azazello pppd[7105]: Connection terminated.
Dec 13 02:32:15 azazello pppd[7105]: Connect time 2.5 minutes.
Dec 13 02:32:15 azazello pppd[7105]: Sent 767 bytes, received 761 bytes.
Dec 13 02:32:15 azazello pppd[7105]: Connect time 2.5 minutes.
Dec 13 02:32:15 azazello pppd[7105]: Sent 767 bytes, received 761 bytes.
Dec 13 02:32:15 azazello pppd[7105]: Exit.
================================================================================
ppp0 и не думает сам подниматься
приходится ручками
притом pppd просто умирает (или так и должен?)
[root@localhost network-scripts]# ps -Af | grep pppd
[root@localhost network-scripts]#
какие соображения на этот счет?
System ALM 2.4 Master
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-12 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-12 23:40 [Comm] ifup-pptp PERSISTant connection. Reestablish after disconnect KupuJIJI
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git