diff options
-rwxr-xr-x | usr/local/www/firewall_rules.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 0bce648..d5e6d6b 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -54,6 +54,12 @@ if ($_POST['if']) $ifdescs = get_configured_interface_with_descr(); +/* 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']; + foreach ($ifdescs as $ifent => $ifdesc) if(have_ruleint_access($ifent)) $iflist[$ifent] = $ifdesc; @@ -79,12 +85,6 @@ 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"; |