Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580632 - net-firewall/shorewalll reload
Summary: net-firewall/shorewalll reload
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 11:28 UTC by stathis
Modified: 2016-04-26 12:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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