From 5427a928a3bfa9fc03aad65f5882946e72905653 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 7 Oct 2007 15:09:57 +0000 Subject: [PATCH] Add FAQ about init scripts git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7432 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- docs/FAQ.xml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/docs/FAQ.xml b/docs/FAQ.xml index eeda8672e..154e934fe 100644 --- a/docs/FAQ.xml +++ b/docs/FAQ.xml @@ -1771,6 +1771,43 @@ iptables: Invalid argument that command can run without error, no stateful iptables firewall will be able to run in your VM. + +
+ (FAQ 73) When I stop Shorewall, the firewall is wide open. Isn't + that a security risk? + + It is important to understand that the scripts in /etc/init.d are generally provided by your + distribution and not by the Shorewall developers. These scripts must + meet the requirements of the distribution's packaging system which may + conflict with the requirements of a tight firewall. So when you say + "…when I stop Shorewall…" it is necessary to distinguish between the + commands /sbin/shorewall stop and + /etc/init.d/shorewall stop. + + /sbin/shorewall stop places the firewall in a + safe state, the details of which depend on your + /etc/shorewall/routestopped file (shorewall-routestopped(8)) + and on the setting of ADMINISABSENTMINDED in + /etc/shorewall/shorewall.conf (shorewall.conf(8)). + + /etc/init.d/shorewall stop may or may not do + the same thing. In the case of Debian systems for + example, that command actually executes /sbin/shorewall + clear which opens the firewall completely. In other words, in + the init scripts stop undoes the effect of + start. + + One way to avoid these differences is to install Shorewall from + the tarballs available from shorewall.net. This places Shorewall outside + of the control of the packaging system and provides consistent behavior + between the init scripts and /sbin/shorewall (and + /sbin/shorewall-lite). For more information on the + tradeoffs involved when deciding whether to use the Debian package, see + this article. +