【发布时间】:2021-12-21 03:13:11
【问题描述】:
我是使用 nginx 的 modSecurity 实验室,我有一个问题
如何为 actione 不匹配任何规则设置默认操作
例如,我有一组规则允许人们从一组 IP 做事,我想阻止所有其他请求? 我该怎么做?
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
SecGeoLookupDb /usr/local/geo/data/GeoLiteCity.dat
SecRule REMOTE_ADDR "@geoLookup" "phase:1,chain,id:10,allow,log,msg:'Blocking Country IP Address'"
SecRule GEO:COUNTRY_CODE "@pm CN"
SecDefaultAction "phase:1,log,auditlog,drop,status:403,tag:'SLA 24/7'"
【问题讨论】:
标签: web-application-firewall mod-security2