summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-24 19:44:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-24 19:44:54 +0000
commit8950f203ec1baa269d2fdcf493f841cf1aa87379 (patch)
tree8de769c610c43d88d5add2bd0bbfb3eadaf8522b /usr/local/www
parente034e424819c1e02bedd934771112da0e1fe755b (diff)
downloadpfsense-8950f203ec1baa269d2fdcf493f841cf1aa87379.zip
pfsense-8950f203ec1baa269d2fdcf493f841cf1aa87379.tar.gz
Automatically take into account multi-wan support.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/firewall_nat_out.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 1075351..43f41ed 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -103,6 +103,9 @@ if (isset($_POST['save'])) {
$natent['descr'] = "Auto created rule for {$if}";
$natent['target'] = "";
$natent['interface'] = "wan";
+ /* if a gateway is setup on this interface, use it */
+ if($config['interfaces'][$if]['gateway'] <> "")
+ $natent['interface'] = $if;
$natent['destination']['any'] = true;
$natent['natport'] = "";
$a_out[] = $natent;
OpenPOWER on IntegriCloud