diff options
Diffstat (limited to 'usr/local/www')
-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; |