From 910efe277f7dacadab9a8517e5b87b2be878a377 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 5 Apr 2009 22:20:53 -0400 Subject: 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 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index df6c226..b89628c 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1678,6 +1678,17 @@ block out $log all label "Default deny rule" block quick proto { tcp, udp } from any port = 0 to any block quick proto { tcp, udp } from any to any port = 0 + +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 .= << persist block quick from to any label "Block snort2c hosts" @@ -2347,4 +2358,4 @@ EOD; return($ipfrules); } -?> +?> \ No newline at end of file -- cgit v1.1