ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Владимир Гусев" <vova1971@narod.ru>
To: community@altlinux.ru
Subject: Re: [Comm] iptables и SNAT - КАК КОРРЕКТНО СОХРАНИТЬ СОЗДАННЫЕ ФИЛЬТРЫ И ПРАВИЛА
Date: Fri, 25 Mar 2005 21:23:18 +0300
Message-ID: <op.sn7hc4xsglg102@post.cnt.ru> (raw)
In-Reply-To: <200503250841.49102.combr@vesna.ru>

>> > Нет. После такой команды набор правил сбросится до сохраненного в
>> > /etc/sysconfig/iptables.
>> Странно... Вроде после этой команды ничего не сбрасывалось... Если  
>> судить
>> по выводу команды iptables-save, конечно...
>
> Вы полностью запутались, по моему.
> Судить надо по выводу команды iptables -L
>
> Алгоритм очень простой:
> 1. iptables -A/D/любое
> (начинает действовать)
> 2. iptables -A/D/любое
> (начинает действовать)
> 3 повторять до удовлетворения
> 4. проверить iptables -L
> 5. service iptables save
>
> ВСЁ!

Эх.. просто это не укладывается с фактами... Я сделал правило для SNAT  
(упоминал в этом треде), нажал Enter - правило применилось.. затем делал  
service iptables restart, а затем iptables-save... Файл  
/etc/sysconfig/iptables и до, и после этих действий оставался пустым.. НО  
правило для SNAT после service iptables restart ПРОДОЛЖАЛО РАБОТАТЬ для  
пользователей сетки - доступ в инет через один внешний IP оставался до  
перезагрузки сервера (нужно было выключить его на время)...  Почему  
работало? Не пойму..
Вот я и гадаю - нужно ли мне пересоздавать все правила заново и сохранить  
их при помощи service iptables save, или можно просто дать эту команду и  
все будет хорошо...

-- 
С уважением, Владимир Гусев


  parent reply	other threads:[~2005-03-25 18:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-22 17:33 [Comm] iptables и SNAT Владимир Гусев
2005-03-23  4:29 ` Mike Lykov
2005-03-23  5:19   ` Владимир Гусев
2005-03-23  7:19     ` Mike Lykov
2005-03-23  6:03 ` Afanasov Dmitry
2005-03-23  7:48   ` Владимир Гусев
2005-03-23 10:10     ` iLL
2005-03-23 11:32       ` Andriy Dobrovol's'kii
2005-03-24 18:25         ` [Comm] iptables и SNAT - КАК КОРРЕКТНО СОХРАНИТЬ СОЗДАННЫЕ ФИЛЬТРЫ И ПРАВИЛА Владимир Гусев
2005-03-24 20:32           ` Pavel Usischev
2005-03-24 23:40             ` Владимир Гусев
2005-03-25  4:41               ` Mike Lykov
2005-03-25  6:32                 ` Dmytro O. Redchuk
2005-03-25 18:23             ` Владимир Гусев [this message]
2005-03-23 13:41   ` [Comm] iptables и SNAT Владимир Гусев
2005-03-24  2:32     ` Максим Ткаченко
2005-03-24  5:23       ` Владимир Гусев
2005-03-24 17:32   ` [Comm] iptables и SNAT - КАК КОРРЕКТНО СОХРАНИТЬ СОЗДАННЫЕ ФИЛЬТРЫ И ПРАВИЛА Владимир Гусев
2005-03-24 17:39     ` Andrey Rahmatullin

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=op.sn7hc4xsglg102@post.cnt.ru \
    --to=vova1971@narod.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