First installation modsecurity error!

Migdiradmin

Verified User
Joined
Jan 5, 2020
Messages
38
Its my first instalation with Directadmin , after i configure this without problems.

VPS 3GB ram

php 7.4
mariadb10.4
nginx_apache (mod_ruid2 disabled)


I tried to install waf comodo & Modsecurity to protect the host.

cd /usr/local/directadmin/custombuild
./build update
./build set modsecurity yes
./build set modsecurity_ruleset comodo
./build modsecurity (I stoped here, because give-me an error)
./build modsecurity_rules
./build rewrite_confs



./build modsecurity
Code:
 Found DirectAdmin version v.1.59.5
which: no sudo in (/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin:/usr/local/apache/bin:/usr/local/apache/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Not found SUDO utility.\nSUDO required for plugin.\nPlease setup it manually, then rerun this installation.
Can't open /etc/cwaf/main.conf: No such file or directory.
Can't open /etc/cwaf/main.conf: No such file or directory.
./build: line 19630: /usr/local/cwaf/scripts/updater.pl: No such file or directory
Defaulting to Comodo WAF SecDefaultAction...
Installation of ModSecurity Rule Set has been finished.
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
 
Last edited:

Migdiradmin

Verified User
Joined
Jan 5, 2020
Messages
38
I have some questions about this comands.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build set modsecurity yes
./build set modsecurity_ruleset comodo
./build modsecurity
./build modsecurity_rules
./build rewrite_confs

wen i use this comands i have only comodo rules right?
What is the modecurity_rules?
What is the best Comodo rules or owasp for nginx_apache ?
 

Migdiradmin

Verified User
Joined
Jan 5, 2020
Messages
38
I have some questions about this comands.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build set modsecurity yes
./build set modsecurity_ruleset comodo
./build modsecurity
./build modsecurity_rules
./build rewrite_confs

wen i use this comands i have only comodo rules right?
What is the modecurity_rules?
What is the best Comodo rules or owasp for nginx_apache ?
This forum(community) have low activity.

After searching and testing i have some answers.

wen i use this comands i have only comodo rules right?
Yes

What is the modecurity_rules?
??? I think is the modsecurity rules i have chosen (owasp or comodo)

What is the best Comodo rules or owasp for nginx_apache ?
After some tests i think owasp is more safety and fast, but more false positives out of the box.
 
Top