Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ложится pptp тунел (link inactive)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
unaos
n00b
n00b


Joined: 06 Apr 2006
Posts: 64
Location: brovary,UA

PostPosted: Sun Jun 18, 2006 10:26 am    Post subject: ложится pptp тунел (link inactive) Reply with quote

Привет! Виновник торжества pptp/pppd, через некторое время происходит обрыв соеденения. Т.е. тунель просто ложится :)
вот кусок лога
Code:

Jun 18 04:09:30 konduktor pppd[30822]: rcvd [LCP TermReq id=0x2 "link inactive"]
[color=red]Jun 18 04:09:30 konduktor pppd[30822]: LCP terminated by peer (link inactive)[/color]
Jun 18 04:09:30 konduktor pppd[30822]: Script /etc/ppp/ip-down started (pid 11613)
Jun 18 04:09:30 konduktor pppd[30822]: sent [LCP TermAck id=0x2]
Jun 18 04:09:30 konduktor pptp[30808]: anon log[pptp_read_some:pptp_ctrl.c:543]: read returned zero, peer has closed
Jun 18 04:09:30 konduktor pptp[30808]: anon log[callmgr_main:pptp_callmgr.c:255]: Closing connection (shutdown)
Jun 18 04:09:30 konduktor pptp[30808]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Jun 18 04:09:30 konduktor pptp[30808]: anon log[pptp_read_some:pptp_ctrl.c:543]: read returned zero, peer has closed
Jun 18 04:09:30 konduktor pptp[30808]: anon log[call_callback:pptp_callmgr.c:78]: Closing connection (call state)
Jun 18 04:09:30 konduktor pppd[30822]: Script /etc/ppp/ip-down finished (pid 11613), status = 0x1
Jun 18 04:09:33 konduktor pppd[30822]: Connection terminated.
Jun 18 04:09:33 konduktor pppd[30822]: Connect time 181.4 minutes.


как я понял ключевая фраза link inactive и что это происходит при простое, сначала добавил в опции idle 0 - не помгло, затем - закоментировал lcp-echo-failure 10 и lcp-echo-interval 10 - не помогло.

здесь options.pptp
Code:

lock
updetach
noauth
debug
nobsdcomp
nodeflate
mppe required,stateless
defaultroute
unit 0
persist
idle 0


и файл определения провайдера

Code:

name talisman
remotename PPTP
file /etc/ppp/options.pptp


какие мысли ?
_________________
house of mystic lies
Back to top
View user's profile Send private message
d_n_k
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2004
Posts: 138
Location: Russia

PostPosted: Sun Jun 18, 2006 10:34 am    Post subject: Reply with quote

Quote:

denis bin # cat pptp_on_line.sh
#!/bin/bash

SLEEP="/usr/bin/sleep 10"

PPTP="/usr/sbin/pptp-command"

while true
do
if /sbin/ifconfig ppp0; then
echo ok;
else
echo failed
${PPTP} stop
${PPTP} start
fi
${SLEEP}
done


init-я│п╨я─п╦п©я┌
Quote:

denis init.d # cat pptp
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
use net
}

start() {
ebegin "Starting pptp"
/root/bin/pptp_on_line.sh &>/dev/null &
eend $?
}

stop () {
ebegin "Stopping pptp"
/bin/ps ax | /bin/grep "pptp_on_line.sh" | /bin/awk '{print $1;}' | /usr/bin/xargs -n1 -exec /bin/kill -KILL
/usr/sbin/pptp-command stop &>/dev/null
eend $?
}
Back to top
View user's profile Send private message
unaos
n00b
n00b


Joined: 06 Apr 2006
Posts: 64
Location: brovary,UA

PostPosted: Sun Jun 18, 2006 7:50 pm    Post subject: Reply with quote

спасибо конечно, такая нараобтка у меня уже есть, хотя перенял логику выбора. но ситуацию это не исправляет - сессия прерывается.
_________________
house of mystic lies
Back to top
View user's profile Send private message
d_n_k
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2004
Posts: 138
Location: Russia

PostPosted: Sun Jun 18, 2006 8:34 pm    Post subject: Reply with quote

сессия обрывается у провайдера или из-за перегрузок сети.
это нормальное явление.
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Mon Jun 19, 2006 5:50 am    Post subject: Reply with quote

Quote:
Jun 18 04:09:30 konduktor pppd[30822]: rcvd [LCP TermReq id=0x2 "link inactive"]

скорее, из-за неактивности на линии
Quote:
active-filter filter-expression
Specifies a packet filter to be applied to data packets to determine which packets are to be regarded as link activity, and
therefore reset the idle timer, or cause the link to be brought up in demand-dialling mode. This option is useful in conjunc-
tion with the idle option if there are packets being sent or received regularly over the link (for example, routing information
packets) which would otherwise prevent the link from ever appearing to be idle. The filter-expression syntax is as described
for tcpdump(1), except that qualifiers which are inappropriate for a PPP link, such as ether and arp, are not permitted. Gen-
erally the filter expression should be enclosed in single-quotes to prevent whitespace in the expression from being interpreted
by the shell. This option is currently only available under Linux, and requires that the kernel was configured to include PPP
filtering support (CONFIG_PPP_FILTER). Note that it is possible to apply different constraints to incoming and outgoing pack-
ets using the inbound and outbound qualifiers.
Back to top
View user's profile Send private message
046
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 231
Location: Yaroslavl, Russia

PostPosted: Mon Jun 19, 2006 10:00 am    Post subject: Re: ложится pptp тунел (link inactive) Reply with quote

unaos wrote:
Привет! Виновник торжества pptp/pppd, через некторое время происходит обрыв соеденения. Т.е. тунель просто ложится :)
вот кусок лога
Jun 18 04:09:30 konduktor pppd[30822]: rcvd [LCP TermReq id=0x2 "link inactive"]

Тебя отключила (про причине неактивности соединения) другая сторона. Свои настройки по поводу idle можешь не дрыгать.
ppp эхо запросы активностью не считаются.
unaos wrote:
какие мысли ?
Мысли две. Можно либо возобновлять соединение при отключении, либо поддерживать активность.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum