Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 580632

Summary: net-firewall/shorewalll reload
Product: Gentoo Linux Reporter: stathis <stathis>
Component: [OLD] UnspecifiedAssignee: Thomas Deutschmann (RETIRED) <whissi>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/1354
Whiteboard:
Package list:
Runtime testing required: ---

Description stathis 2016-04-20 11:28:02 UTC
net-firewall/shorewall provides a number of options to recreate its fw chains and generally be re-initialized. However, through the gentoo init script /etc/init.d/shorewall it provides only few of these options.

Of particular interest, especially with the implementation of v5.x, shorewall reload should be implemented. See here:

http://shorewall.net/manpages/shorewall.html

I modified the init script to include:

extra_started_commands="refresh reset reload"

and added a function:


reload() {
   ebegin "Reloading shorewall"
   ${command} status 1>/dev/null
   if [ $? != 0 ] ; then
      svc_start
   else
      ${command} ${OPTIONS} reload 1>/dev/null
   fi
   eend $?
}
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2016-04-20 14:36:04 UTC
There were reasons why "reload" was not added to Gentoo's shorewall runscripts. However upstream re-implemented "reload" in shorewall-5.x, I'll re-evaluate if we will add the new "reload" command to the runscripts.

Thanks for the report.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2016-04-26 12:32:04 UTC
Thank you for your report!

"reload" is now available with shorewall-5.0.8, added via https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=098d7c9931e31aeab8b1f1dac651b4060b13e55c