Project

General

Profile

« Previous | Next » 

Revision 0ec2fdf0

Added by Ermal Luçi about 16 years ago

  • 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.

View differences:

usr/local/www/firewall_rules.php
79 79
if  ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"])
80 80
   	$iflist["openvpn"] = "OpenVPN";
81 81

  
82
/* add group interfaces */
83
if (is_array($config['ifgroups']['ifgroupentry']))
84
	foreach($config['ifgroups']['ifgroupentry'] as $ifgen)
85
		if (have_ruleint_access($ifgen['ifname']))
86
			$iflist[$ifgen['ifname']] = $ifgen['ifname'];
87

  
82 88
if (!$if || !isset($iflist[$if])) {
83 89
	if ("any" == $if)
84 90
                $if = "FloatingRules";

Also available in: Unified diff