mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
(firewall_rules.php) use new pluggable interfaces and remove old custom hooks
This commit is contained in:
parent
409a032cc0
commit
3ef4f1dc3b
@ -262,35 +262,8 @@ $( document ).ready(function() {
|
||||
// create tabs per interface + floating
|
||||
$iflist_tabs = array();
|
||||
$iflist_tabs['FloatingRules'] = 'Floating';
|
||||
if (isset($config['ifgroups']['ifgroupentry']))
|
||||
foreach($config['ifgroups']['ifgroupentry'] as $ifgen)
|
||||
$iflist_tabs[$ifgen['ifname']] = $ifgen['ifname'];
|
||||
|
||||
foreach (get_configured_interface_with_descr() as $ifent => $ifdesc)
|
||||
$iflist_tabs[$ifent] = $ifdesc;
|
||||
|
||||
if (isset($config['l2tp']['mode']) && $config['l2tp']['mode'] == "server")
|
||||
$iflist_tabs['l2tp'] = "L2TP VPN";
|
||||
|
||||
if (isset($config['pptpd']['mode']) && $config['pptpd']['mode'] == "server")
|
||||
$iflist_tabs['pptp'] = "PPTP VPN";
|
||||
|
||||
if (isset($config['pppoes']['pppoe'])) {
|
||||
foreach ($config['pppoes']['pppoe'] as $pppoes) {
|
||||
if (($pppoes['mode'] == 'server')) {
|
||||
$iflist_tabs['pppoe'] = "PPPoE Server";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* add ipsec interfaces */
|
||||
if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) {
|
||||
$iflist_tabs['enc0'] = 'IPsec';
|
||||
}
|
||||
|
||||
/* add openvpn/tun interfaces */
|
||||
if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) {
|
||||
$iflist_tabs['openvpn'] = 'OpenVPN';
|
||||
foreach (legacy_config_get_interfaces(array("enable" => true)) as $if => $ifdetail) {
|
||||
$iflist_tabs[$if] = strtoupper($ifdetail['descr']);
|
||||
}
|
||||
|
||||
$tab_array = array();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user