From: Dmitry Nechaev <dima@academy.cap.ru>
To: community@altlinux.ru
Subject: Re: [Comm] /etc/rc.d/init.d/iptables
Date: Fri, 5 Dec 2003 15:15:47 +0300
Message-ID: <200312051515.47329.dima@academy.cap.ru> (raw)
In-Reply-To: <20031205120940.GI11434@pyro.hopawar.private.net>
В сообщении от Пятница 05 Декабрь 2003 15:09 Alexey Morozov написал(a):
> Вопрос вот какой: как идеологически верно и все такое прочее
> осуществляется создание/сохранение конфигурационного файлика
> для iptables (то есть /etc/sysconfig/iptables) и последующее поднятие
> правил? Все увиденные мной конфигурялки либо кидаются сами ковыряться
> в таблице правил, либо, на крайний случай, предосталяют init.d-скрипт
> для поднятия правил на старте.
>
> Насколько я понимаю, это все глупости, и необходимо вначале [как-то]
> сформировать набор правил, а затем сохранить его в /etc/sysconfig/iptables,
> а всяких разных до поднятия правил не пущать.
У меня, по крайней мере, так: есть свой скрипт, где правила iptables
расположены по понятным мне принципам. в конце скрипта - service iptables
save. При этом происходит сохранение правил iptables в файл
/etc/sysconfig/iptables. При загрузке скрипт /etc/rc.d/init.d/iptables эти
правила загружает.
Я правлю скрипт, как мне надо, потом запускаю его и всё.
--
2.4.20-alt5-up GNU/Linux
prev parent reply other threads:[~2003-12-05 12:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-05 12:09 Alexey Morozov
2003-12-05 12:13 ` Alexander Bokovoy
2003-12-05 12:19 ` Re[2]: " Evgeny Yugov
2003-12-05 12:21 ` Alexander Bokovoy
2003-12-05 12:23 ` Re[4]: " Evgeny Yugov
2003-12-05 12:15 ` Dmitry Nechaev [this message]
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=200312051515.47329.dima@academy.cap.ru \
--to=dima@academy.cap.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