diff options
author | robiscool <robrob2626@yahoo.com> | 2010-09-03 16:49:00 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-09-03 16:49:29 -0700 |
commit | 0f44a289caec586d72fd07ea2abc6d2d3a514e69 (patch) | |
tree | 20fef34c3a1e6c22c6df81bc14adf3c7cf0df3d0 /config/snort/snort_interfaces_whitelist_edit.php | |
parent | c818365fd612cdab48b7be5500377eca43447b55 (diff) | |
download | pfsense-packages-0f44a289caec586d72fd07ea2abc6d2d3a514e69.tar.gz pfsense-packages-0f44a289caec586d72fd07ea2abc6d2d3a514e69.tar.bz2 pfsense-packages-0f44a289caec586d72fd07ea2abc6d2d3a514e69.zip |
snort, fix whitelist tab row_heper.js
Diffstat (limited to 'config/snort/snort_interfaces_whitelist_edit.php')
-rw-r--r-- | config/snort/snort_interfaces_whitelist_edit.php | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/config/snort/snort_interfaces_whitelist_edit.php b/config/snort/snort_interfaces_whitelist_edit.php index 4056f992..5ccc9965 100644 --- a/config/snort/snort_interfaces_whitelist_edit.php +++ b/config/snort/snort_interfaces_whitelist_edit.php @@ -105,7 +105,7 @@ if (isset($id) && $a_whitelist[$id]) { if ($_POST['apply']) { if (file_exists("$d_snort_whitelist_dirty_path")) { - + conf_mount_rw(); write_config(); sync_snort_package_config(); @@ -119,6 +119,8 @@ if (isset($id) && $a_whitelist[$id]) { if ($_POST['submit']) { + conf_mount_rw(); + unset($input_errors); $pconfig = $_POST; @@ -259,7 +261,7 @@ echo $snort_general_css; <div class="body2"> -<script type="text/javascript" src="./javascript/row_helper.js"></script> +<script type="text/javascript" src="/snort/javascript/row_helper.js"></script> <input type='hidden' name='address_type' value='textbox' /> <script type="text/javascript"> @@ -354,6 +356,12 @@ echo $snort_general_css; <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> This list specifies addresses that Snort Package should not block.<br><br> + <strong>NETLIST:</strong> This list is for defining addresses as $HOME_NET or $EXTERNAL_NET in the snort.conf file. + </div> + <select name="snortlisttype" class="formfld" id="snortlisttype"> <?php $interfaces4 = array('whitelist' => 'WHITELIST', 'netlist' => 'NETLIST'); @@ -362,9 +370,10 @@ echo $snort_general_css; <?=htmlspecialchars($ifacename4);?> </option> <?php endforeach; ?> - </select><br> - <span class="vexpl">Choose the type of list you will like see in your Interface Edit Tab. Hint: Best pratice is to test every list you make. - </span> <span class="red">Note:</span> NETLIST's are only for defining snort.conf's external or home NETS.</td> + </select> + <span class="vexpl"> + 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> @@ -424,8 +433,10 @@ echo $snort_general_css; <tbody> <tr> <td colspan="4"> - <div style="padding:5px; margin-top: 16px; margin-bottom: 16px; border:1px dashed #000066; background-color: #ffffff; color: #000000; font-size: 8pt;" id="itemhelp"> - Enter only ips and CIDRs, do not enter CIDRs for whitelists. Example: 192.168.4.1 or 192.168.4.0/24</div> + <div style="padding:5px; margin-top: 16px; margin-bottom: 16px; border:1px dashed #ff3333; background-color: #eee; color: #000; font-size: 8pt;" id="itemhelp"> + For <strong>WHITELIST's</strong> enter <strong>ONLY IPs not CIDRs</strong>. Example: 192.168.4.1<br><br> + For <strong>NETLIST's</strong> you may enter <strong>IPs and CIDRs</strong>. Example: 192.168.4.1 or 192.168.4.0/24 + </div> </td> </tr> <tr> @@ -487,10 +498,12 @@ echo $snort_general_css; <script type="text/javascript"> /* row and col adjust when you add extra entries */ - field_counter_js = 2; + + field_counter_js = 3; rows = 1; totalrows = <?php echo $counter; ?>; loaded = <?php echo $counter; ?>; + </script> </div> |