diff options
author | Ermal <eri@pfsense.org> | 2013-01-30 17:07:26 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-30 17:07:41 +0000 |
commit | e2a282a0b9f7ee1636e1c2ec15e767a2f5b43fb6 (patch) | |
tree | d9dd64884b9b6b977fa3b467568bac1180e0e053 /etc/inc | |
parent | 7e86b57ecf26d5fb9bd6219f69dcda992cee4af4 (diff) | |
download | pfsense-e2a282a0b9f7ee1636e1c2ec15e767a2f5b43fb6.zip pfsense-e2a282a0b9f7ee1636e1c2ec15e767a2f5b43fb6.tar.gz |
Put more checks here
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index dbca698..f30ec90 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2654,25 +2654,34 @@ EOD; break; case "6rd": $ipfrules .= <<<EOD - # allow our proto 41 traffic from the 6RD border relay in pass in on \${$oc['descr']} proto 41 from {$config['interfaces'][$on]['gateway-6rd']} to any label "Allow 6in4 traffic in for 6rd on {$oc['descr']}" pass out on \${$oc['descr']} proto 41 from any to {$config['interfaces'][$on]['gateway-6rd']} label "Allow 6in4 traffic out for 6rd on {$oc['descr']}" + +EOD; + if (is_ipaddrv6($oc['ipv6'])) { + $ipfrules .= <<<EOD pass in on \${$oc['descr']} inet6 from any to {$oc['ipv6']}/{$oc['snv6']} label "Allow 6rd traffic in for 6rd on {$oc['descr']}" pass out on \${$oc['descr']} inet6 from {$oc['ipv6']}/{$oc['snv6']} to any label "Allow 6rd traffic out for 6rd on {$oc['descr']}" EOD; + } break; case "6to4": $ipfrules .= <<<EOD # allow our proto 41 traffic from the 6to4 border relay in pass in on \${$oc['descr']} proto 41 from any to {$oc['ip']} label "Allow 6in4 traffic in for 6to4 on {$oc['descr']}" -pass in on \${$oc['descr']} inet6 from any to {$oc['ipv6']}/{$oc['snv6']} label "Allow 6in4 traffic in for 6to4 on {$oc['descr']}" pass out on \${$oc['descr']} proto 41 from {$oc['ip']} to any label "Allow 6in4 traffic out for 6to4 on {$oc['descr']}" + +EOD; + if (is_ipaddrv6($oc['ipv6'])) { + $ipfrules .= <<<EOD +pass in on \${$oc['descr']} inet6 from any to {$oc['ipv6']}/{$oc['snv6']} label "Allow 6in4 traffic in for 6to4 on {$oc['descr']}" pass out on \${$oc['descr']} inet6 from {$oc['ipv6']}/{$oc['snv6']} to any label "Allow 6in4 traffic out for 6to4 on {$oc['descr']}" EOD; + } break; default: if((isset($config['dhcpdv6'][$on]['enable'])) || |