summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-09 22:15:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-09 22:15:19 +0000
commit4335b4af987c79aa3b356bd53d3223810d344b1b (patch)
tree11348537ea8c5bd4283c1f3b8f450e078dc54023 /usr/local/www/firewall_nat_out.php
parent2593d87e15ba903c97045b38b58b9d5a2a5526a0 (diff)
downloadpfsense-4335b4af987c79aa3b356bd53d3223810d344b1b.zip
pfsense-4335b4af987c79aa3b356bd53d3223810d344b1b.tar.gz
Do not create rules every time user saves settings.
Ticket #858
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rwxr-xr-xusr/local/www/firewall_nat_out.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 797c089..a7826f1 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -69,7 +69,7 @@ if ($_POST) {
if (isset($_POST['save'])) {
-
+ $was_enabled = $config['nat']['advancedoutbound']['enable'];
/* mutually exclusive settings - if user wants advanced NAT, we don't help with IPSec */
if ($_POST['ipsecpassthru'] == true) {
$config['nat']['ipsecpassthru']['enable'] = true;
@@ -83,7 +83,7 @@ if (isset($_POST['save'])) {
$config['nat']['ipsecpassthru']['enable'] = false;
if ($_POST['advancedoutbound'] == false)
$config['nat']['advancedoutbound']['enable'] = false;
- if($config['nat']['advancedoutbound']['enable'] and $_POST['advancedoutbound'] <> "") {
+ if($was_enabled and $_POST['advancedoutbound'] <> "") {
/*
* user has enabled advanced outbound nat -- lets automatically create entries
* for all of the interfaces to make life easier on the pip-o-chap
OpenPOWER on IntegriCloud