From: KupuJIJI <KupuJIJI@yandex.ru> To: community@altlinux.ru Subject: [Comm] ifup-pptp PERSISTant connection. Reestablish after disconnect Date: Mon, 13 Dec 2004 02:40:27 +0300 Message-ID: <20041213024027.20409304.KupuJIJI@yandex.ru> (raw) Привет всем. У меня возникла небольшая проблема. Есть 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
reply other threads:[~2004-12-12 23:40 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20041213024027.20409304.KupuJIJI@yandex.ru \ --to=kupujiji@yandex.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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