ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dank Bagryantsev <4alt@mail.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] неполное выполнение /etc/ppp/ip-down.local при маленьком времени сессии (ALM-2.4)
Date: Tue, 7 Feb 2006 14:49:20 +0200
Message-ID: <1871693880.20060207144920@lugaport.net> (raw)

Здравствуйте.

У меня есть VPN-сервер (PPTPD) с аутоинтефикацией через RADIUS.
в ip-up.local следующее:

$IPTABLES -t filter -A INPUT -i $IFNAME -s ! $IPREMOTE -j REJECT
$IPTABLES -t filter -A FORWARD -i $IFNAME -s $IPREMOTE -j ACCEPT
$IPTABLES -t filter -A FORWARD -o $IFNAME -d $IPREMOTE -j ACCEPT
$IPTABLES -t filter -A OUTPUT -o $IFNAME -d ! $IPREMOTE -j REJECT

и соответственно в ip-down.local :

$IPTABLES -t filter -D INPUT -i $IFNAME -s ! $IPREMOTE -j REJECT
$IPTABLES -t filter -D FORWARD -i $IFNAME -s $IPREMOTE -j ACCEPT
$IPTABLES -t filter -D FORWARD -o $IFNAME -d $IPREMOTE -j ACCEPT
$IPTABLES -t filter -D OUTPUT -o $IFNAME -d ! $IPREMOTE -j REJECT

заметил, что при маленьком времени ppp-соединения (1 секунда и меньше)
иногда остаются правила iptables, и естественно после этого начинаются
проблемы/неприятности...
Подозреваю, что не полностью выполняется ip-down.local.
Возможно где-то "прибивается" родительский процесс и соответственно
"убивается" как дочерний ip-down.local ?
Как эту ситуацию можно "побороть"? Может в каком-то скрипте на сервере
sleep вставить? или timeout где увеличить?

P.S. раз уж зашла речь про эти скрипты, то еще: при
     multi-ppp-соединениях ip-up.local выполняется один раз, а
     ip-down.local ДВА раза (в зависимости от кол-ва физ. соединений?)
     IMHO, неправильно? Или я ошибаюсь?

-- 
С уважением,
 Dank



             reply	other threads:[~2006-02-07 12:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 12:49 Dank Bagryantsev [this message]
2006-02-07 14:50 ` ABATAPA
2006-02-07 21:05   ` Re[2]: " Dank Bagryantsev
2006-02-08 15:47     ` ABATAPA
2006-02-08 16:39       ` Re[4]: " Dank Bagryantsev

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=1871693880.20060207144920@lugaport.net \
    --to=4alt@mail.ru \
    --cc=community@lists.altlinux.org \
    /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