Only enable helpers during a 'clear' operation.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-05-25 16:31:27 -07:00
parent 60d0a50d9d
commit dde1f0a779

View File

@ -2444,7 +2444,7 @@ EOF
# #
# Enable automatic helper association on kernel 3.5.0 and later # Enable automatic helper association on kernel 3.5.0 and later
# #
if [ -f /proc/sys/net/netfilter/nf_conntrack_helper ]; then if [ $COMMAND = clear -a -f /proc/sys/net/netfilter/nf_conntrack_helper ]; then
echo 1 > /proc/sys/net/netfilter/nf_conntrack_helper echo 1 > /proc/sys/net/netfilter/nf_conntrack_helper
fi fi