summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-16 23:48:03 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-16 23:48:59 +0000
commit0ec2fdf0ad985ff390c6230f375e88cde5a4d61b (patch)
tree828de0128f6d57c5624b9ef954a3bf246d9a2537 /usr/local/www/firewall_rules_edit.php
parenta4d372d59794e64a220947a704b56fe1c5bd2e40 (diff)
downloadpfsense-0ec2fdf0ad985ff390c6230f375e88cde5a4d61b.zip
pfsense-0ec2fdf0ad985ff390c6230f375e88cde5a4d61b.tar.gz
* Introduce interface groups. For now they are availble only on Firewall:Rules section maybe it would be usable to have tham on nat too.
* Some fixes and cleanup.
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index ecbb87e..ffd7062 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -548,6 +548,12 @@ include("head.inc");
if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"])
$interfaces["openvpn"] = "OpenVPN";
+ /* add group interfaces */
+ if (is_array($config['ifgroups']['ifgroupentry']))
+ foreach($config['ifgroups']['ifgroupentry'] as $ifgen)
+ if (have_ruleint_access($ifgen['ifname']))
+ $interfaces[$ifgen['ifname']] = $ifgen['ifname'];
+
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && stristr($pconfig['interface'], $iface)) echo "selected"; ?>><?=gettext($ifacename);?></option>
<?php endforeach; ?>
OpenPOWER on IntegriCloud