summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/firewall_nat_out_edit.php12
-rwxr-xr-xusr/local/www/firewall_rules_edit.php16
2 files changed, 27 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php
index f12f14a..cf8e9d4 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['interface'] = "wan";
$pconfig['descr'] = $a_out[$id]['descr'];
$pconfig['nonat'] = $a_out[$id]['nonat'];
+ $pconfig['nosync'] = isset($a_out[$id]['nosync']);
} else {
$pconfig['source_subnet'] = 24;
$pconfig['destination'] = "any";
@@ -206,6 +207,11 @@ if ($_POST) {
$a_out[] = $natent;
}
+ if($_POST['nosync'] <> "")
+ $natent['nosync'] = true;
+ else
+ unset($natent['nosync']);
+
touch($d_natconfdirty_path);
write_config();
@@ -391,6 +397,12 @@ function sourcesel_change() {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell">No XMLRPC Sync</td>
+ <td width="78%" class="vtable">
+ <input name="nosync" type="text" class="formfld" id="nosync"<?php if($pconfig['nosync']) echo " CHECKED"; ?>>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell">Description</td>
<td width="78%" class="vtable">
<input name="descr" type="text" class="formfld" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>">
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 874275c..24da5cb 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -93,6 +93,8 @@ if (isset($id) && $a_filter[$id]) {
$pconfig['statetype'] = $a_filter[$id]['statetype'];
$pconfig['statetimeout'] = $a_filter[$id]['statetimeout'];
+ $pconfig['nosync'] = isset($a_filter[$id]['nosync']);
+
/* advanced - new connection per second banning*/
$pconfig['max-src-conn-rate'] = $a_filter[$id]['max-src-conn-rate'];
$pconfig['max-src-conn-rates'] = $a_filter[$id]['max-src-conn-rates'];
@@ -258,7 +260,13 @@ if ($_POST) {
$filterent['statetimeout'] = $_POST['statetimeout'];
$filterent['statetype'] = $_POST['statetype'];
$filterent['os'] = $_POST['os'];
-
+
+ /* Nosync directive - do not xmlrpc sync this item */
+ if($_POST['nosync'] <> "")
+ $filterent['nosync'] = true;
+ else
+ unset($filterent['nosync']);
+
/* unless both values are provided, unset the values - ticket #650 */
if($_POST['max-src-conn-rate'] <> "" and $_POST['max-src-conn-rates'] <> "") {
$filterent['max-src-conn-rate'] = $_POST['max-src-conn-rate'];
@@ -676,6 +684,12 @@ include("head.inc");
<p><strong>Leave blank for default. Amount is in seconds.</strong></p>
</td>
</tr>
+ <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"; ?>>
+ </td>
+ </tr>
<?php
/* build a list of gateways */
$gateways = array();
OpenPOWER on IntegriCloud