From 4bc0961efb594c92b282c214bc975bc06fa323e2 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 5 Apr 2009 22:00:39 -0400 Subject: [PATCH] Block all IPv6 traffic by default, since IPv6 isn't supported, there isn't any way to add such rules in the GUI, and nearly all users won't want IPv6 to traverse their firewall at this point. Add "Allow IPv6" checkbox to disable this behavior. --- etc/inc/filter.inc | 9 +++++++++ usr/local/www/system_advanced.php | 25 +++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 3a4e304e31..b018bb317b 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2189,6 +2189,15 @@ table persist block quick from to any label "Block snort2c hosts" block quick from any to label "Block snort2c hosts" +EOD; + + if(!isset($config['system']['ipv6allow'])) { + $ipfrules .= "# Block all IPv6\n"; + $ipfrules .= "block in quick inet6 all\n"; + $ipfrules .= "block out quick inet6 all\n"; + } + + $ipfrules .= <<  - IPv6 tunneling + IPv6 + + + Allow IPv6 + + onclick="enable_change(false)" /> + Allow IPv6 traffic +

+ All IPv6 traffic will be blocked unless this box is checked. + -   + IPv6 tunneling onclick="enable_change(false)" /> NAT encapsulated IPv6 packets (IP protocol 41/RFC2893) to: @@ -379,6 +394,12 @@ include("head.inc");  (IP address) + +   + + + +