summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2005-09-19 21:07:43 +0000
committerSeth Mos <seth.mos@xs4all.nl>2005-09-19 21:07:43 +0000
commitf8f2a6e425dd3ab0c3ddee0fc74c7c487d10f384 (patch)
tree123b9e92c3e997db82dcc039f98d8058b1939e8a /usr/local/www/firewall_nat_out_edit.php
parent117642a37ee11987e09be900ede229a7b2928d39 (diff)
downloadpfsense-f8f2a6e425dd3ab0c3ddee0fc74c7c487d10f384.zip
pfsense-f8f2a6e425dd3ab0c3ddee0fc74c7c487d10f384.tar.gz
Fix the no nat option so it is correctly set and unset from the config.
1st commit!
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_out_edit.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php
index 1c8f40b..09fa299 100755
--- a/usr/local/www/firewall_nat_out_edit.php
+++ b/usr/local/www/firewall_nat_out_edit.php
@@ -174,7 +174,13 @@ if ($_POST) {
$natent['descr'] = $_POST['descr'];
$natent['target'] = $_POST['target'];
$natent['interface'] = $_POST['interface'];
- $natent['nonat'] = $_POST['nonat'];
+
+ /* if user has selected not nat, set it here */
+ if(isset($_POST['nonat'])) {
+ $natent['nonat'] = true;
+ } else {
+ $natent['nonat'] = false;
+ }
if ($ext == "any")
$natent['destination']['any'] = true;
OpenPOWER on IntegriCloud