summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules.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.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.php')
-rwxr-xr-xusr/local/www/firewall_rules.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index 9dca190..1a859a6 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -79,6 +79,12 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']
if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"])
$iflist["openvpn"] = "OpenVPN";
+/* add group interfaces */
+if (is_array($config['ifgroups']['ifgroupentry']))
+ foreach($config['ifgroups']['ifgroupentry'] as $ifgen)
+ if (have_ruleint_access($ifgen['ifname']))
+ $iflist[$ifgen['ifname']] = $ifgen['ifname'];
+
if (!$if || !isset($iflist[$if])) {
if ("any" == $if)
$if = "FloatingRules";
OpenPOWER on IntegriCloud