summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2010-10-25 13:48:12 +0200
committerSeth Mos <seth.mos@dds.nl>2010-10-25 13:48:12 +0200
commit290797ea64be6e28c97e563dd688e373263f0154 (patch)
tree19dcbaa99af1c5d72372f9755e3a3ed74f623086 /usr
parent1306c7dd6b66bdf41d5e06e03905ea1ddcc6a30d (diff)
downloadpfsense-290797ea64be6e28c97e563dd688e373263f0154.zip
pfsense-290797ea64be6e28c97e563dd688e373263f0154.tar.gz
Fix the filter.inc rule generation for icmp to prevent a double inet6 in the rule
Add inet6 for user defined rules to ipv6 addresses.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index cdd417a..b3533e2 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -632,6 +632,18 @@ if($_REQUEST['undodrag']) {
</td>
<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
<?=$textss;?><?php
+ if (isset($filterent['ipprotocol'])) {
+ switch($filterent['ipprotocol']) {
+ case "inet":
+ echo "IPv4 ";
+ break;
+ case "inet6":
+ echo "IPv6 ";
+ break;
+ }
+ } else {
+ echo "IPv4 ";
+ }
if (isset($filterent['protocol'])) {
echo strtoupper($filterent['protocol']);
if (strtoupper($filterent['protocol']) == "ICMP" && !empty($filterent['icmptype'])) {
OpenPOWER on IntegriCloud