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

[sergeig@me.com: Potential Documentation Issue with iptables]



Maybe more appropriate here?

----- Forwarded message from Sergei Gnezdov <sergeig@me.com> -----

Date: Thu, 29 Aug 2013 22:42:09 -0700
From: Sergei Gnezdov <sergeig@me.com>
To: debian-user@lists.debian.org
Subject: Potential Documentation Issue with iptables

I followed instructions on Debian manual:
http://www.debian.org/doc/manuals/securing-debian-howto/ch-sec-services.en.html#s-firewall-pack

Section: 5.14.3.2 Manual init.d configuration

There is command listed to install /etc/init.d/myfirewall:
	#update-rc.d myfirewall start 40 S . stop 89 0 6 .

The following messages are reported:
	update-rc.d: using dependency based boot sequencing
	insserv: warning: script 'myfirewall' missing LSB tags and overrides

The fix for the issue requires alteration of the sample script. the script needs the following comments added:

### BEGIN INIT INFO
# Provides:          myfirewall
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start iptables firewall
# Description:       Enable iptables firewall rules from myfirewall.
### END INIT INFO

Command can be then changed to
	insserv myfirewall


----- End forwarded message -----

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Reply to: