summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rwxr-xr-xusr/local/www/firewall_nat_out.php12
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();
OpenPOWER on IntegriCloud