From: "Zander Subatomic" <zander@subatomic.org.uk>
To: netfilter@lists.netfilter.org
Subject: firewall script placement
Date: Sun, 19 Jan 2003 13:04:29 -0000 [thread overview]
Message-ID: <00d601c2bfbb$4d85a930$0401a8c0@darthvader> (raw)
ok this may sound like a silly question but where do I put the script?? I'm
running 7.3 RedHat and before I used to just write the script in a file and
then copy & paste it into a command line for the initial creation and then
use the iptables-save to /etc/sysconfig/iptables which worked fine for it to
be loaded on a reboot. Now I have a larger, more complex rule set I thought
I'd finall write a script for it but I've only got a slight understanding of
the start up process.
Do I need to put the script in the /etc/rc.d/init.d/ directory and then
create the startup/kill links in the /etc/rcX.d/ directories by hand or can
I just put a:
# chkconfig: 2345 <one above iptables start number> <one below iptables kill
number>
Could I change the line: IPTABLES_CONFIG=/etc/sysconfig/iptables in
/etc/rc.d/init.d/iptables script to my script? I'm assuming though it would
have to be in the format of the iptables-save command so wouldn't work? I
have looked around the place and previous posts but have never seen this
mentioned.
Or am I way of the mark? :o)
cheers
Zander
next reply other threads:[~2003-01-19 13:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-19 13:04 Zander Subatomic [this message]
2003-01-19 19:30 ` firewall script placement Michael J. Tubby B.Sc. (Hons) G8TIC
2003-01-19 23:57 ` Zander Subatomic
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='00d601c2bfbb$4d85a930$0401a8c0@darthvader' \
--to=zander@subatomic.org.uk \
--cc=netfilter@lists.netfilter.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.