ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] неполное выполнение /etc/ppp/ip-down.local при маленьком времени сессии (ALM-2.4)
@ 2006-02-07 12:49 Dank Bagryantsev
  2006-02-07 14:50 ` ABATAPA
  0 siblings, 1 reply; 5+ messages in thread
From: Dank Bagryantsev @ 2006-02-07 12:49 UTC (permalink / raw)
  To: ALT Linux Community

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

У меня есть 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-08 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-07 12:49 [Comm] неполное выполнение /etc/ppp/ip-down.local при маленьком времени сессии (ALM-2.4) Dank Bagryantsev
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

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