Removed http_preprocessor disable feature from ids.cgi
authorStefan Schantl <Stevee@ipfire.org>
Fri, 24 Apr 2009 12:51:02 +0000 (14:51 +0200)
committerStefan Schantl <Stevee@ipfire.org>
Fri, 24 Apr 2009 12:51:02 +0000 (14:51 +0200)
html/cgi-bin/ids.cgi

index 3566b938a4325d615b1c856a6ca66c9c593f2f7f..76b846ad91db227a2495153a8f8a5e5f2a149b20 100644 (file)
@@ -56,7 +56,6 @@ $snortsettings{'ENABLE_SNORT'} = 'off';
 $snortsettings{'ENABLE_SNORT_GREEN'} = 'off';
 $snortsettings{'ENABLE_SNORT_BLUE'} = 'off';
 $snortsettings{'ENABLE_SNORT_ORANGE'} = 'off';
-$snortsettings{'ENABLE_PREPROCESSOR_HTTP_INSPECT'} = 'off';
 $snortsettings{'ENABLE_GUARDIAN'} = 'off';
 $snortsettings{'GUARDIAN_INTERFACE'} = `cat /var/ipfire/red/iface`;
 $snortsettings{'GUARDIAN_HOSTGATEWAYBYTE'} = '1';
@@ -112,17 +111,6 @@ if (-e "/etc/snort/snort.conf") {
                # Trim the line
                chomp $line;
 
-               if ($snortsettings{'ACTION'} eq $Lang::tr{'save'}) {
-                       # Check for preprocessor settings
-                       if ($line =~ /preprocessor http_inspect/) {
-                               # Strip out leading # from rule line
-                               $line =~ s/\# ?//i;
-                               if (($snortsettings{'ENABLE_PREPROCESSOR_HTTP_INSPECT'} eq 'off')) {
-                                       $line = "# $line";
-                               }
-                       }
-               }
-
                # Check for a line with .rules
                if ($line =~ /\.rules$/) {
                        # Parse out rule file name
@@ -384,9 +372,6 @@ $checked{'ENABLE_SNORT_BLUE'}{$snortsettings{'ENABLE_SNORT_BLUE'}} = "checked='c
 $checked{'ENABLE_SNORT_ORANGE'}{'off'} = '';
 $checked{'ENABLE_SNORT_ORANGE'}{'on'} = '';
 $checked{'ENABLE_SNORT_ORANGE'}{$snortsettings{'ENABLE_SNORT_ORANGE'}} = "checked='checked'";
-$checked{'ENABLE_PREPROCESSOR_HTTP_INSPECT'}{'off'} = '';
-$checked{'ENABLE_PREPROCESSOR_HTTP_INSPECT'}{'on'} = '';
-$checked{'ENABLE_PREPROCESSOR_HTTP_INSPECT'}{$snortsettings{'ENABLE_PREPROCESSOR_HTTP_INSPECT'}} = "checked='checked'";
 $checked{'ENABLE_GUARDIAN'}{'off'} = '';
 $checked{'ENABLE_GUARDIAN'}{'on'} = '';
 $checked{'ENABLE_GUARDIAN'}{$snortsettings{'ENABLE_GUARDIAN'}} = "checked='checked'";
@@ -455,14 +440,6 @@ print <<END
 <tr>
        <td><hr /></td>
 </tr>
-<tr>
-       <td><b>$Lang::tr{'ids preprocessor'}</b></td>
-</tr>
-<tr>
-       <td><input type='checkbox' name='ENABLE_PREPROCESSOR_HTTP_INSPECT' $checked{'ENABLE_PREPROCESSOR_HTTP_INSPECT'}{'on'} />  http_inspect $Lang::tr{'active'}
-<tr>
-       <td><hr /></td>
-</tr>
 <tr>
        <td><b>$Lang::tr{'ids rules update'}</b></td>
 </tr>