See TasksExplained? for more infos about tasks. This task is based on the template at TaskTemplateStart
Status : closed
Category : gui
Date opened : 2007-02-05
Description : Generate ruleset
Referenced in stories/tasks :
WebStatistics
Story7Start
Testsuite : test/functional/rules_generator_test.rb
Commited revision : 85
Remarks :
Generate a ruleset based on the requests in the request list. Save the ruleset to a file. Return filename.
Changelog
2007-02-06 - done
The ruleset is generated and written to rulesfile.conf
So far a rule looks as follows:
# allow: GET /index.html
SecRule REQUEST_METHOD "^GET$" "chain,allow,nolog,id:1"
SecRule REQUEST_URI "\/index\.html"
There is a prepend-file and an append-file that is taken locally and included into the ruleset.
Filename: prepend-file.conf, append-file.conf
The test runs over all the requests in the database and examines every request in the ruleset closely.