From fde24c16dff5d7c4d0b0dda13aa4ddb837e8efd3 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 24 Jul 2009 16:58:49 -0700 Subject: [PATCH] Fix 'disable_ipv6 --- Shorewall/Perl/prog.footer | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Shorewall/Perl/prog.footer b/Shorewall/Perl/prog.footer index 0661180ce..cd1a5e23a 100644 --- a/Shorewall/Perl/prog.footer +++ b/Shorewall/Perl/prog.footer @@ -32,11 +32,9 @@ clear_firewall() { echo 1 > /proc/sys/net/ipv4/ip_forward if [ -n "$DISABLE_IPV6" ]; then - if qt mywhich ip6tables; then - ip6tables -P INPUT ACCEPT 2> /dev/null - ip6tables -P OUTPUT ACCEPT 2> /dev/null - ip6tables -P FORWARD ACCEPT 2> /dev/null - fi + $IP6TABLES -P INPUT ACCEPT 2> /dev/null + $IP6TABLES -P OUTPUT ACCEPT 2> /dev/null + $IP6TABLES -P FORWARD ACCEPT 2> /dev/null fi run_clear_exit