diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-01-04 21:07:49 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-01-04 21:07:49 -0500 |
commit | 4a3cb40c9a28e0a036a2373cd7bc3d0b994159df (patch) | |
tree | 77afe68d135ed523e9f0f1b2d82e86bcb4121622 /usr | |
parent | d2243cff88f717fb2441e549f39fb972ca487834 (diff) | |
download | pfsense-4a3cb40c9a28e0a036a2373cd7bc3d0b994159df.zip pfsense-4a3cb40c9a28e0a036a2373cd7bc3d0b994159df.tar.gz |
don't generate automatic outbound rules again if there are already rules defined
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 6 |
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(); |