ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: [Comm] Re: firewall+masquerade
Date: Tue, 16 Sep 2003 15:45:02 +0400
Message-ID: <20030916154502.477ad322.vsu@altlinux.ru> (raw)
In-Reply-To: <20030916132813.GB21065@mrkooll.tdr.pibhe.com>

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

On Tue, 16 Sep 2003 16:28:13 +0300
Maxim Tyurin <mrkooll@tdr.pibhe.com> wrote:

> On Tue, Sep 16, 2003 at 01:45:52PM +0400, Aleksander N. Gorohovski wrote:
> <scip>
> > Но вот незадача при новом включении машины или перезагрузке
> > системы, iptables-правила пропадают и необходимо заново
> > запускать этот сценарий.
> > 
> > Посоветуйте умные люди, как граммотно сделать, чтобы при старте
> > системы сценарий срабатывал автоматически
> 
> Смотря какой у тебя сценарий. 
> Если он статический без ветвлений и не зависит от внешних параметров
> (например нет привязки к динамическому IP выдаваемовому DHCP)
> то просто запусти сценарий для создания правил
> потом 
> # service iptables save; chkconfig iptables on
> 
> Если сценарий сложный - то пропиши его запуск в
> /etc/rc.d/rc.sysinit (если нужно чтоб запускался при загрузке)

Зачем же rc.sysinit трогать без надобности? Там же вызывается
/etc/rc.d/rc.firewall (при его наличии), вот туда и положить.
(вообще-то там три варианта имени этого скрипта - не знаю, какой из
них более правильный)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-09-16 11:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-16  9:45 [Comm] firewall+masquerade Aleksander N. Gorohovski
2003-09-16 10:59 ` Sergey Degtyaryov
2003-09-16 11:01 ` Maxim Ivanov
2003-09-16 11:47 ` Mike Lykov
2003-09-16 13:28 ` Maxim Tyurin
2003-09-16 11:45   ` Sergey Vlasov [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=20030916154502.477ad322.vsu@altlinux.ru \
    --to=vsu@altlinux.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