diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-07-15 15:12:22 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-07-15 15:12:22 +0000 |
commit | e1f675e48516c801282b6472e75530a1675c55b6 (patch) | |
tree | c2e111bc7a7263260a78dde49c9061b9903f3da2 /usr | |
parent | 63161b3f6048b640827c0771fae1f82592f52f01 (diff) | |
download | pfsense-e1f675e48516c801282b6472e75530a1675c55b6.zip pfsense-e1f675e48516c801282b6472e75530a1675c55b6.tar.gz |
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.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 2 |
1 files changed, 2 insertions, 0 deletions
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']); |