diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-01-04 20:57:32 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-01-04 20:57:32 -0500 |
commit | d2243cff88f717fb2441e549f39fb972ca487834 (patch) | |
tree | c44975e1b83f181f8d5a8f5df589444ade03e859 /usr | |
parent | 5bc37291c754af3910fe5484043f071289f8cc39 (diff) | |
download | pfsense-d2243cff88f717fb2441e549f39fb972ca487834.zip pfsense-d2243cff88f717fb2441e549f39fb972ca487834.tar.gz |
more fixes to auto generated outbound NAT rules to match what is actually created by default in auto NAT mode
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index 61ef7aa..e0d9cdc 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -103,22 +103,22 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") { $natent = array(); $natent['source']['network'] = "{$osn}/{$ossubnet}"; - $natent['sourceport'] = "500"; - $natent['descr'] = "Auto created rule for {$ifdesc} to {$ifdesc2}"; + $natent['dstport'] = "500"; + $natent['descr'] = "Auto created rule for ISAKMP - {$ifdesc} to {$ifdesc2}"; $natent['target'] = ""; $natent['interface'] = $if2; $natent['destination']['any'] = true; - $natent['natport'] = "500"; + $natent['staticnatport'] = true; $a_out[] = $natent; $natent = array(); $natent['source']['network'] = "{$osn}/{$ossubnet}"; - $natent['sourceport'] = "5060"; - $natent['descr'] = "Auto created rule for {$ifdesc} to {$ifdesc2}"; + $natent['dstport'] = "5060"; + $natent['descr'] = "Auto created rule for SIP - {$ifdesc} to {$ifdesc2}"; $natent['target'] = ""; $natent['interface'] = $if2; $natent['destination']['any'] = true; - $natent['natport'] = "5060"; + $natent['staticnatport'] = true; $a_out[] = $natent; $natent = array(); |