diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-21 19:23:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-21 19:23:13 +0000 |
commit | d00055f8ce8fe1ea7b662e59a42e444aad7fabb7 (patch) | |
tree | 8ba284972c78978baeae43151799934e39b42df4 /usr/local/www/firewall_nat_edit.php | |
parent | 69a0cc1c55c1fafa1ecf4aad40b3cdbd22fbcecb (diff) | |
download | pfsense-d00055f8ce8fe1ea7b662e59a42e444aad7fabb7.zip pfsense-d00055f8ce8fe1ea7b662e59a42e444aad7fabb7.tar.gz |
Complete nosync support
Ticket #848
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index dd800fb..b58dab0 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -54,6 +54,7 @@ if (isset($id) && $a_nat[$id]) { $pconfig['localbeginport'] = $a_nat[$id]['local-port']; $pconfig['descr'] = $a_nat[$id]['descr']; $pconfig['interface'] = $a_nat[$id]['interface']; + $pconfig['nosync'] = isset($a_nat[$id]['nosync']); if (!$pconfig['interface']) $pconfig['interface'] = "wan"; } else { @@ -164,6 +165,11 @@ if ($_POST) { $natent['interface'] = $_POST['interface']; $natent['descr'] = $_POST['descr']; + if($_POST['nosync'] == "yes") + $natent['nosync'] = true; + else + unset($natent['nosync']); + if (isset($id) && $a_nat[$id]) $a_nat[$id] = $natent; else { @@ -375,6 +381,13 @@ include("fbegin.inc"); ?> <br> <span class="vexpl">You may enter a description here for your reference (not parsed).</span></td> </tr><?php if ((!(isset($id) && $a_nat[$id])) || (isset($_GET['dup']))): ?> + <tr> + <td width="22%" valign="top" class="vncell">No XMLRPC Sync</td> + <td width="78%" class="vtable"> + <input type="checkbox" name="nosync"<?php if($pconfig['nosync']) echo " CHECKED"; ?>><br> + HINT: This prevents the rule from automatically syncing to other carp members. + </td> + </tr> <tr> <td width="22%" valign="top"> </td> <td width="78%"> |