LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   How to whitelist a subnet in ModSecurity? (https://www.linuxquestions.org/questions/linux-security-4/how-to-whitelist-a-subnet-in-modsecurity-4175501795/)

yzT! 04-15-2014 07:19 AM

How to whitelist a subnet in ModSecurity?
 
Searching over Internet I have found how to whitelist a single IP, but how can I whitelist a whole subnet?

solved: SecRule REMOTE_HOST "@ipmatch 192.168.1.0/24" phase:1,nolog,allow,ctl:ruleEngine=off

unSpawn 04-26-2014 05:03 AM

Thanks for posting your solution (off of the 0-reply list now).


All times are GMT -5. The time now is 06:10 AM.