From 50362040d73c6ddaf231b44d77253c3e82d65a61 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 12 Aug 2012 08:42:53 -0700 Subject: [PATCH] Enable automatic helper association during 'stop'. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Misc.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Misc.pm b/Shorewall/Perl/Shorewall/Misc.pm index 16f2d796f..89b7b840d 100644 --- a/Shorewall/Perl/Shorewall/Misc.pm +++ b/Shorewall/Perl/Shorewall/Misc.pm @@ -2340,6 +2340,14 @@ EOF deletechain shorewall run_stop_exit + + # + # Enable automatic helper association on kernel 3.5.0 and later + # + if [ -f /proc/sys/net/netfilter/nf_conntrack_helper ]; then + echo 1 > /proc/sys/net/netfilter/nf_conntrack_helper + fi + EOF if ( have_capability( 'NAT_ENABLED' ) ) {