summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-15 15:12:22 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-15 15:12:22 +0000
commite1f675e48516c801282b6472e75530a1675c55b6 (patch)
treec2e111bc7a7263260a78dde49c9061b9903f3da2
parent63161b3f6048b640827c0771fae1f82592f52f01 (diff)
downloadpfsense-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.
-rwxr-xr-xusr/local/www/firewall_nat_out.php2
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']);
OpenPOWER on IntegriCloud