Re: Package idea, Debian-Firewall.
On Wed, Oct 13, 2004 at 06:13:36AM +0200, nicklas (smurfd) wrote:
> I have had a package idea, for a long time now. The idea, was a
> package, containing a "Flush-all" firewall script. Adding this script to
> be ran at bootup. Just for the simplicity. I tend to keep forgetting to
> add it myself.
I think anybody who knows enough to create a firewall will not
omit the flushing.
> the postinst file looks like :
> set -e
> if [ "$1" = "configure" ]; then
> ln -s /etc/init.d/debian-firewall /etc/rc0.d/S20debian-firewall
> ln -s /etc/init.d/debian-firewall /etc/rc1.d/S20debian-firewall
> ln -s /etc/init.d/debian-firewall /etc/rc2.d/S20debian-firewall
Use update-rc.d, please.
> and the prerm file looks like :
> set -e
> if [ "$1" = "remove" ]; then
> rm /etc/rc0.d/S20debian-firewall
> rm /etc/rc1.d/S20debian-firewall
Again update-rc.d should be used here.
# The Debian Security Audit Project.