[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where to install the firewall scripts


Torrin <torrin@torrin.dyndns.org> writes:

> > I presume you call these scripts from some other
> > script? From /etc/init.d/networking perhaps?
> No need to.  I've never seen documentation on this, but from what I
> understand, if you put a script in the if-pre-up.d directory it gets
> call automatically just before networking comes up.  Also, if you put a
> script in the if-post-down.d directory if gets called just after
> networking goes down.  Can anybody point us to the relevant
> documentation?

I use the /etc/init.d/iptables script to start, stop, save, etc my firewalling
directives. Once my rules seems OK, I run '/etc/init.d/iptables save active',
and each time my system boots up (Once a year...), it load the correct file.

There is 'active' and 'inactive' ruleset, and 2 other states (I can't remember
exactly the names) of firewalling ruleset.

My 2 cents.

THE OLD POOL SHOOTER had won many a game in his life. But now it was time
to hang up the cue. When he did, all the other cues came crashing go the floor.

"Sorry," he said with a smile.
		-- Jack Handley, The New Mexican, 1988.
François TOURDE - tourde.org - 23 rue Bernard GANTE - 93250 VILLEMOMBLE
Tél: 01 49 35 96 69 - Mob: 06 81 01 81 80
eMail: mailto:francois@tourde.org - URL: http://francois.tourde.org/

Reply to: