From f6ded420af0b3ec8ff60705b28e60afd7ea814f8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 3 Jan 2006 04:38:46 +0000 Subject: Add static-port option for outbound NAT --- usr/local/www/firewall_nat_out_edit.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'usr') diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 3c9fbe0..e26e4dc 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -63,6 +63,7 @@ if (isset($id) && $a_out[$id]) { $pconfig['descr'] = $a_out[$id]['descr']; $pconfig['nonat'] = $a_out[$id]['nonat']; $pconfig['nosync'] = isset($a_out[$id]['nosync']); + $pconfig['staticnatport'] = isset($a_out[$id]['staticnatport']); } else { $pconfig['source_subnet'] = 24; $pconfig['destination'] = "any"; @@ -179,6 +180,12 @@ if ($_POST) { $natent['target'] = $_POST['target']; $natent['interface'] = $_POST['interface']; + /* static-port */ + if(isset($_POST['staticnatport'])) + $natent['staticnatport'] = true; + else + unset($natent['staticnatport']); + /* if user has selected not nat, set it here */ if(isset($_POST['nonat'])) $natent['nonat'] = true; @@ -387,6 +394,10 @@ function sourcesel_change() { Port:   + + Static-port:   + +   Enter the source port for the outbound NAT mapping. -- cgit v1.1