Linux Netfilter discussions
 help / color / mirror / Atom feed
* firewall script placement
@ 2003-01-19 13:04 Zander Subatomic
  2003-01-19 19:30 ` Michael J. Tubby B.Sc. (Hons) G8TIC
  0 siblings, 1 reply; 3+ messages in thread
From: Zander Subatomic @ 2003-01-19 13:04 UTC (permalink / raw)
  To: netfilter

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



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

end of thread, other threads:[~2003-01-19 23:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-19 13:04 firewall script placement Zander Subatomic
2003-01-19 19:30 ` Michael J. Tubby B.Sc. (Hons) G8TIC
2003-01-19 23:57   ` Zander Subatomic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox