From e1f675e48516c801282b6472e75530a1675c55b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Tue, 15 Jul 2008 15:12:22 +0000 Subject: When switching to AON rules do not create nat rules for interfaces that have gateway. This fixes some broken generated rules. NOTE: That some more work is needed to make it comply to interfaces that are set as dhcp or to produce nat rules for interfaces other then WAN. --- usr/local/www/firewall_nat_out.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr/local/www/firewall_nat_out.php') diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index 5ee1c11..2ff9f6e 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -83,6 +83,8 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") { $ifdescrs = get_configured_interface_with_descr(); foreach($ifdescrs as $if => $ifdesc) { + if (interface_has_gateway()) + continue; $natent = array(); $osn = gen_subnet($config['interfaces'][$if]['ipaddr'], $config['interfaces'][$if]['subnet']); -- cgit v1.1