diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-24 19:44:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-24 19:44:54 +0000 |
commit | 8950f203ec1baa269d2fdcf493f841cf1aa87379 (patch) | |
tree | 8de769c610c43d88d5add2bd0bbfb3eadaf8522b /usr/local/www/firewall_nat_out.php | |
parent | e034e424819c1e02bedd934771112da0e1fe755b (diff) | |
download | pfsense-8950f203ec1baa269d2fdcf493f841cf1aa87379.zip pfsense-8950f203ec1baa269d2fdcf493f841cf1aa87379.tar.gz |
Automatically take into account multi-wan support.
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 3 |
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; |