On 9/30/10 10:44 AM, Mr Dash Four wrote: > >>> Shorewall stopped. <======= >>> >> >> At this point, Shorewall was stopped! That causes init to be invoked >> with $COMMAND=stop >> > Ah, I see! So, if there is any error in my config files (rules, secmarks > etc) running Shorewall gives up and stops and when I then execute > 'service shorewall reload' Shorewall starts (without a warning that I am > not actually 'reloading' but 'starting') and it then goes to execute my > /etc/shorewall/init with 'start', right? I wasn't aware of that behaviour. > >> If you don't like that, do '/sbin/shorewall save' with a good >> configuration. That will re-install that configuration rather than put >> the firewall in a safe configuration. >> > Is there a more straight-forward solution, for example, if I am trying > to reload/restart a running Shorewall and it sees that there is > something wrong with its configuration not to just panic and stop, but > to keep itself running or is that what 'shorewall save' does?
Shorewall only "panics and stops" if one of the critical commands (like iptables-restore) fails. If there is a current 'saved' configuration, Shorewall attempts to restore that configuration. Otherwise, it performs the equivalent of 'shorewall stop'. > > Is there a safe-restart (for Shorewall to save itself when starting and > then if I try to reload/restart it with errors in its configuration > files shorewall to just reload itself with its previous - saved - > configuration)? If so, should I assume that Shorewall won't execute my > /etc/shorewall/init with 'start' (and therefore wipe out my entire ipset > configuration)? man shorewall and look for 'safe-restart'. > > >> Security zealots (including those in my >> division at HP) believe that sending a signal (even to yourself) is an >> evil thing that requires extensive vetting. >> > I don't know about sending a signal to yourself, but sending the wrong > signals to your young/pretty/attractive (delete or add as appropriate) > colleagues is known to often cause problems and land you in hot water. :-) -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
