Project

General

Profile

« Previous | Next » 

Revision 10f21e70

Added by Scott Ullrich over 19 years ago

MFC 8288
Add NOSYNC options to firewall rules and firewall nat outbound

View differences:

usr/local/www/firewall_nat_out_edit.php
63 63
		$pconfig['interface'] = "wan";
64 64
    $pconfig['descr'] = $a_out[$id]['descr'];
65 65
    $pconfig['nonat'] = $a_out[$id]['nonat'];
66
    $pconfig['nosync'] = isset($a_out[$id]['nosync']);
66 67
} else {
67 68
    $pconfig['source_subnet'] = 24;
68 69
    $pconfig['destination'] = "any";
......
206 207
			$a_out[] = $natent;
207 208
	}
208 209

  
210
	if($_POST['nosync'] <> "")
211
		$natent['nosync'] = true;
212
	else
213
		unset($natent['nosync']);
214

  
209 215
        touch($d_natconfdirty_path);
210 216

  
211 217
        write_config();
......
390 396
			</table>
391 397
		  </td>
392 398
                </tr>
399
                <tr>
400
                  <td width="22%" valign="top" class="vncell">No XMLRPC Sync</td>
401
                  <td width="78%" class="vtable">
402
                    <input name="nosync" type="text" class="formfld" id="nosync"<?php if($pconfig['nosync']) echo " CHECKED"; ?>>
403
		  </td>
404
                </tr>		
393 405
                <tr>
394 406
                  <td width="22%" valign="top" class="vncell">Description</td>
395 407
                  <td width="78%" class="vtable">
usr/local/www/firewall_rules_edit.php
93 93
        $pconfig['statetype'] = $a_filter[$id]['statetype'];
94 94
	$pconfig['statetimeout'] = $a_filter[$id]['statetimeout'];
95 95
	
96
	$pconfig['nosync'] = isset($a_filter[$id]['nosync']);	
97

  
96 98
	/* advanced - new connection per second banning*/
97 99
	$pconfig['max-src-conn-rate'] = $a_filter[$id]['max-src-conn-rate'];
98 100
	$pconfig['max-src-conn-rates'] = $a_filter[$id]['max-src-conn-rates'];
......
258 260
		$filterent['statetimeout'] = $_POST['statetimeout'];
259 261
		$filterent['statetype'] = $_POST['statetype'];
260 262
		$filterent['os'] = $_POST['os'];
261
		
263

  
264
		/* Nosync directive - do not xmlrpc sync this item */
265
		if($_POST['nosync'] <> "") 
266
			$filterent['nosync'] = true;
267
		else
268
			unset($filterent['nosync']);
269

  
262 270
		/* unless both values are provided, unset the values - ticket #650 */
263 271
		if($_POST['max-src-conn-rate'] <> "" and $_POST['max-src-conn-rates'] <> "") {
264 272
			$filterent['max-src-conn-rate'] = $_POST['max-src-conn-rate'];
......
676 684
				<p><strong>Leave blank for default.  Amount is in seconds.</strong></p>
677 685
			</td>
678 686
		</tr>
687
		<tr>
688
			<td width="22%" valign="top" class="vncell">No XMLRPC Sync</td>
689
			<td width="78%" class="vtable">
690
				<input type="checkbox" name="nosync"<?php if($pconfig['nosync']) echo " CHECKED"; ?>>
691
			</td>
692
		</tr>		
679 693
<?php
680 694
			/* build a list of gateways */
681 695
			$gateways = array();

Also available in: Unified diff