"; $results .=`/usr/local/bin/oinkmaster.pl -s -u file://$filename -C /var/ipfire/snort/oinkmaster.conf -o /etc/snort/rules 2>&1`; $results .= ""; } unlink ($filename); } } } $checked{'ENABLE_SNORT'}{'off'} = ''; $checked{'ENABLE_SNORT'}{'on'} = ''; $checked{'ENABLE_SNORT'}{$snortsettings{'ENABLE_SNORT'}} = "checked='checked'"; $checked{'ENABLE_SNORT_GREEN'}{'off'} = ''; $checked{'ENABLE_SNORT_GREEN'}{'on'} = ''; $checked{'ENABLE_SNORT_GREEN'}{$snortsettings{'ENABLE_SNORT_GREEN'}} = "checked='checked'"; $checked{'ENABLE_SNORT_BLUE'}{'off'} = ''; $checked{'ENABLE_SNORT_BLUE'}{'on'} = ''; $checked{'ENABLE_SNORT_BLUE'}{$snortsettings{'ENABLE_SNORT_BLUE'}} = "checked='checked'"; $checked{'ENABLE_SNORT_ORANGE'}{'off'} = ''; $checked{'ENABLE_SNORT_ORANGE'}{'on'} = ''; $checked{'ENABLE_SNORT_ORANGE'}{$snortsettings{'ENABLE_SNORT_ORANGE'}} = "checked='checked'"; $checked{'ENABLE_GUARDIAN'}{'off'} = ''; $checked{'ENABLE_GUARDIAN'}{'on'} = ''; $checked{'ENABLE_GUARDIAN'}{$snortsettings{'ENABLE_GUARDIAN'}} = "checked='checked'"; $selected{'RULES'}{'nothing'} = ''; $selected{'RULES'}{'community'} = ''; $selected{'RULES'}{'registered'} = ''; $selected{'RULES'}{'subscripted'} = ''; $selected{'RULES'}{$snortsettings{'RULES'}} = "selected='selected'"; &Header::openpage($Lang::tr{'intrusion detection system'}, 1, ''); ####################### Added for snort rules control ################################# print ""; print <
GREEN Snort
END
;
if ($netsettings{'BLUE_DEV'} ne '') {
print " BLUE Snort";
}
if ($netsettings{'ORANGE_DEV'} ne '') {
print " ORANGE Snort";
}
print " RED Snort";
if ( -e "/var/ipfire/guardian/guardian.conf" ) {
print " Guardian";
}
print < |
$Lang::tr{'ids rules update'} |
$Lang::tr{'ids rules license'} www.snort.org$Lang::tr{'ids rules license1'} $Lang::tr{'ids rules license2'} Get an Oinkcode, $Lang::tr{'ids rules license3'} |
Oinkcode: |
END ; if ($snortsettings{'INSTALLMD5'} eq $md5) { print " $Lang::tr{'rules already up to date'} | "; } else { if ( $snortsettings{'ACTION'} eq $Lang::tr{'download new ruleset'} && $md5 eq $realmd5 ) { $snortsettings{'INSTALLMD5'} = $realmd5; $snortsettings{'INSTALLDATE'} = `/bin/date +'%Y-%m-%d'`; &General::writehash("${General::swroot}/snort/settings", \%snortsettings); } print " $Lang::tr{'updates installed'}: $snortsettings{'INSTALLDATE'}"; } print <
$Lang::tr{'guardian interface'} | |
$Lang::tr{'guardian timelimit'} | |
$Lang::tr{'guardian logfile'} | |
$Lang::tr{'guardian alertfile'} | |
$Lang::tr{'guardian ignorefile'} | |
|
|
|
|