diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-03-16 23:48:03 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-03-16 23:48:59 +0000 |
commit | 0ec2fdf0ad985ff390c6230f375e88cde5a4d61b (patch) | |
tree | 828de0128f6d57c5624b9ef954a3bf246d9a2537 /usr/local/www/firewall_rules.php | |
parent | a4d372d59794e64a220947a704b56fe1c5bd2e40 (diff) | |
download | pfsense-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-x | usr/local/www/firewall_rules.php | 6 |
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"; |