diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-03-06 18:15:50 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-03-06 18:15:50 -0500 |
commit | 1c89ddf732b621aaceda0b6ea70b2cbf606868c8 (patch) | |
tree | 36400ca7d49b39bb26f3f355d0a5566cfef9dd33 /config/apache_mod_security | |
parent | 23a3125c3cbcad1ebdfdba019460fcd973ab7732 (diff) | |
download | pfsense-packages-1c89ddf732b621aaceda0b6ea70b2cbf606868c8.tar.gz pfsense-packages-1c89ddf732b621aaceda0b6ea70b2cbf606868c8.tar.bz2 pfsense-packages-1c89ddf732b621aaceda0b6ea70b2cbf606868c8.zip |
Download rules during installation
Diffstat (limited to 'config/apache_mod_security')
-rw-r--r-- | config/apache_mod_security/apache_mod_security.inc | 8 | ||||
-rw-r--r-- | config/apache_mod_security/apache_mod_security.xml | 15 |
2 files changed, 8 insertions, 15 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index 76aecabe..1126c309 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -62,6 +62,14 @@ function apache_mod_security_restart() { function apache_mod_security_install() { global $config, $g; + exec("/usr/bin/fetch -q -o " . rules_directory . "/ http://www.pfsense.com/packages/config/apache_mod_security/rules/10_asl_rules.conf"); + exec("/usr/bin/fetch -q -o " . rules_directory . "/ http://www.pfsense.com/packages/config/apache_mod_security/rules/a_exclude.conf"); + exec("/usr/bin/fetch -q -o " . rules_directory . "/ http://www.pfsense.com/packages/config/apache_mod_security/rules/blacklist.conf"); + exec("/usr/bin/fetch -q -o " . rules_directory . "/ http://www.pfsense.com/packages/config/apache_mod_security/rules/default.conf"); + exec("/usr/bin/fetch -q -o " . rules_directory . "/ http://www.pfsense.com/packages/config/apache_mod_security/rules/recons.conf"); + exec("/usr/bin/fetch -q -o " . rules_directory . "/ http://www.pfsense.com/packages/config/apache_mod_security/rules/rootkits.conf"); + exec("/usr/bin/fetch -q -o " . rules_directory . "/ http://www.pfsense.com/packages/config/apache_mod_security/rules/useragents.conf"); + // We might be reinstalling and a configuration // already exists. generate_apache_configuration(); diff --git a/config/apache_mod_security/apache_mod_security.xml b/config/apache_mod_security/apache_mod_security.xml index 23447a89..22ecb549 100644 --- a/config/apache_mod_security/apache_mod_security.xml +++ b/config/apache_mod_security/apache_mod_security.xml @@ -62,21 +62,6 @@ <chmod>0644</chmod> <item>http://www.pfsense.com/packages/config/apache_mod_security/apache_mod_security_view_logs.php</item> </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/apachemodsecurity/rules/</prefix> - <chmod>0644</chmod> - <item>http://www.pfsense.com/packages/config/apache_mod_security/rules/default.conf</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/apachemodsecurity/rules/</prefix> - <chmod>0644</chmod> - <item>http://www.pfsense.com/packages/config/apache_mod_security/rules/10_asl_rules.conf</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/apachemodsecurity/rules/</prefix> - <chmod>0644</chmod> - <item>http://www.pfsense.com/packages/config/apache_mod_security/rules/snortmodsec-rules.txt</item> - </additional_files_needed> <tabs> <tab> <text>Proxy Server Settings</text> |