Unconditionally disable kernel automatic helper association during start.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-08-12 08:43:28 -07:00
parent b372163122
commit 2f1d59366c

View File

@ -705,12 +705,10 @@ sub compiler {
# #
setup_proxy_arp; setup_proxy_arp;
my $setting = supplied $config{HELPERS} ? 0 : 1; emit( "#\n# Disable automatic helper association on kernel 3.5.0 and later\n#" ,
emit( "#\n# Set automatic helper association on kernel 3.5.0 and later\n#" ,
'if [ -f /proc/sys/net/netfilter/nf_conntrack_helper ]; then' , 'if [ -f /proc/sys/net/netfilter/nf_conntrack_helper ]; then' ,
' progress_message "Setting up Automatic Helper Association"', ' progress_message "Disabling Kernel Automatic Helper Association"',
" echo $setting > /proc/sys/net/netfilter/nf_conntrack_helper", " echo 0 > /proc/sys/net/netfilter/nf_conntrack_helper",
'fi', 'fi',
'' ''
); );