コード例 #1
0
					<?php 
$BlockTimeReset = array('never' => 'NEVER', '1h_b' => '1 HOUR', '3h_b' => '3 HOURS', '6h_b' => '6 HOURS', '12h_b' => '12 HOURS', '1d_b' => '1 DAY', '4d_b' => '4 DAYS', '7d_b' => '7 DAYS', '28d_b' => '28 DAYS');
snortDropDownList($BlockTimeReset, $rm_blocked);
?>
					</select><br>					
					<span class="vexpl">Please select the amount of time you would likehosts to be blocked for.<br>Hint: in most cases, 1 hour is a good choice.</span>
					</td>
			</tr>
			<tr>
				<td width="22%" valign="top" class="vncell2"><span>Alerts file descriptiontype</span></td>
				<td width="78%" class="vtable">
				<select name="snortalertlogtype" class="formfld2" id="snortalertlogtype">
					<?php 
// TODO: make this option a check box with all log types
$alertLogTypeList = array('full' => 'FULL', 'fast' => 'SHORT');
snortDropDownList($alertLogTypeList, $snortalertlogtype);
?>
				</select><br>
				<span class="vexpl">Please choose the type of Alert logging you will like see in your alert file.<br> Hint: Best pratice is to chose full logging.</span>&nbsp;
				<span class="red"><strong>WARNING:</strong></span>&nbsp;<strong>On change, alert file will be cleared.</strong>
				</td>
			</tr>
			<tr>
				<td width="22%" valign="top" class="vncell2"><span>Keep snort settings after deinstall</span></td>
				<td width="22%" class="vtable">
				<input name="forcekeepsettings" id="forcekeepsettings" type="checkbox" value="on" <?php 
echo $forcekeepsettings_on;
?>
 >
				<span class="vexpl">Settings will not be removed during deinstall.</span>
				</td>
コード例 #2
0
					<br>
					<span class="vexpl">Choose the suppression or filtering file you will like this rule to use.&nbsp;<span class="red">
					Note:</span>&nbsp;Default option disables suppression and filtering.</span>
				</td>
			</tr>			
			<tr>
				<td colspan="2" valign="top" class="listtopic">Choose the types of logs snort should create.</td>
			</tr>
			<tr>
				<td width="22%" valign="top" class="vncell2">Type of Unified Logging</td>
				<td width="78%" class="vtable">
					<select name="snortalertlogtype" class="formfld" id="snortalertlogtype">
	
					<?php 
$snortalertlogtypePerfList = array('full' => 'FULL', 'fast' => 'FAST', 'disable' => 'DISABLE');
snortDropDownList($snortalertlogtypePerfList, $a_list['snortalertlogtype']);
?>
						
						
					</select>
					<br>
					<span class="vexpl">Snort will log Alerts to a file in the UNIFIED format. Full is a requirement for the snort wigdet.</span>
				</td>
			</tr>			
			<tr>
				<td width="22%" valign="top" class="vncell2">Send alerts to mainSystem logs</td>
				<td width="78%" class="vtable">
					<input name="alertsystemlog" type="checkbox" value="on" <?php 
echo $ifaceEnabled = $a_list['alertsystemlog'] == 'on' ? 'checked' : '';
?>
 >
コード例 #3
0
    $timeamount = $listGenRules[0]['timeamount'];
} else {
    $timeamount = '15';
}
?>
					
					<input class="formfld2" id="timeamount_gensettings" name="snortsam[db][gensettings][timeamount]" size="7" value="<?php 
echo $timeamount;
?>
" type="text">
					</td>
					<td class="odd_ruleset2">
					<select class="formfld2" id="timetype_gensettings" name="snortsam[db][gensettings][timetype]">
					<?php 
$timeTypeList = array('minutes' => 'MINUTES', 'seconds' => 'SECONDS', 'hours' => 'HOURS', 'days' => 'DAYS', 'weeks' => 'WEEKS', 'months' => 'MONTHS', 'always' => 'ALWAYS');
snortDropDownList($timeTypeList, $listGenRules[0]['timetype']);
?>
					
					</select>
					</td>
					</tr>
					</table>
				</td>
			</tr>			
		</table>

			
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		
		<tr >
			<td width="5%" class="listtopic">Enabled</td>
コード例 #4
0
?>
" /> <br />
				<span class="vexpl"> You may enter a description here for your reference (not parsed). </span>
				</td>
			</tr>
			<tr>
				<td width="22%" valign="top" class="vncell2">List Type</td>
				<td width="78%" class="vtable">
				<div style="padding: 5px; margin-top: 16px; margin-bottom: 16px; border: 1px dashed #ff3333; background-color: #eee; color: #000; font-size: 8pt;"id="itemhelp">
				<strong>WHITELIST:</strong>&nbsp;&nbsp;&nbsp;This list specifies addresses that Snort Package should not block.<br><br>
				<strong>NETLIST:</strong>&nbsp;&nbsp;&nbsp;This list is for defining addresses as $HOME_NET or $EXTERNAL_NET in the snort.conf file.
				</div>
				<select name="snortlisttype" class="formfld2" id="snortlisttype">
				<?php 
$updateDaysList = array('whitelist' => 'WHITELIST', 'netlist' => 'NETLIST');
snortDropDownList($updateDaysList, $a_list['snortlisttype']);
?>
				</select> 
				<span class="vexpl"> &nbsp;&nbsp;&nbsp;Choose the type of list you will like see in your <span class="red">Interface Edit Tab</span>.</span>
				</td>
			</tr>
			<tr>
				<td colspan="2" valign="top" class="listtopic">Add auto generated ips.</td>
			</tr>
			<tr>
				<td width="22%" valign="top" class="vncell2">WAN IPs</td>
				<td width="78%" class="vtable">
				<input name="wanips" type="checkbox" id="wanips" size="40" value="on" <?php 
echo $wanips_on;
?>
 />