summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-01-04 21:07:49 -0500
committerChris Buechler <cmb@pfsense.org>2010-01-04 21:07:49 -0500
commit4a3cb40c9a28e0a036a2373cd7bc3d0b994159df (patch)
tree77afe68d135ed523e9f0f1b2d82e86bcb4121622 /usr/local/www/firewall_nat_out.php
parentd2243cff88f717fb2441e549f39fb972ca487834 (diff)
downloadpfsense-4a3cb40c9a28e0a036a2373cd7bc3d0b994159df.zip
pfsense-4a3cb40c9a28e0a036a2373cd7bc3d0b994159df.tar.gz
don't generate automatic outbound rules again if there are already rules defined
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rwxr-xr-xusr/local/www/firewall_nat_out.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index e0d9cdc..90ffe43 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -83,8 +83,12 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") {
case "advancedoutboundnat":
if (!isset($config['nat']['advancedoutbound']['enable'])) {
$config['nat']['advancedoutbound']['enable'] = true;
+ // if there are already AON rules configured, don't generate default ones
+ if(!empty($a_out))
+ continue;
/*
- * user has enabled advanced outbound nat -- lets automatically create entries
+ * user has enabled advanced outbound NAT and doesn't have rules
+ * lets automatically create entries
* for all of the interfaces to make life easier on the pip-o-chap
*/
$ifdescrs = get_configured_interface_with_descr();
OpenPOWER on IntegriCloud