Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. /etc/init.d/apache2 restart
  2. * Restarting web server apache2 [fail]
  3. * The apache2 configtest failed.
  4. Output of config test was:
  5. AH00526: Syntax error on line 252 of /etc/apache2/apache2.conf:
  6. ModSecurity: No action id present within the rule
  7. Action 'configtest' failed.
  8. The Apache error log may have more information.
  9.  
  10. 232 Alias /shared /var/shared
  11. 233 <Directory /var/shared>
  12. 234 Options Indexes MultiViews FollowSymLinks
  13. 235 AllowOverride AuthConfig
  14. 236 Order allow,deny
  15. 237 Allow from all
  16. 238 </Directory>
  17. 239
  18. 240 <IfModule security2_module>
  19. 241 Include /usr/share/modsecurity-crs/*.conf
  20. 242 Include /usr/share/modsecurity-crs/base_rules/*.conf
  21. 243 </IfModule>
  22. 244 <LocationMatch /shared>
  23. 245 # Uncomment to troubleshoot
  24. 246 SecDebugLogLevel 9
  25. 247 SecDebugLog /tmp/troubleshooting.log
  26. 248
  27. 249 # Enforce an existing IP address block
  28. 250 SecRule IP:bf_block "@eq 1"
  29. 251 "phase:2,deny,
  30. 252 msg:'IP address blocked because of suspected brute-forceattack'"
  31. 253
  32. 254 # Check that this is a POST
  33. 255 SecRule REQUEST_METHOD "@streq POST" "phase:5,chain,t:none,nolog,pass"
  34. 256 # AND Check for authentication failure and increment counters
  35. 257 # NOTE this is for a Rails application, you probably need to customize this
  36. 258 SecRule RESPONSE_STATUS "^200"
  37. 259 "setvar:IP.bf_counter=+1"
  38. 260
  39. 261 # Check for too many failures from a single IP address. Block for 10 minutes.
  40. 262 SecRule IP:bf_counter "@ge 3"
  41. 263 "phase:5,pass,t:none,
  42. 264 setvar:IP.bf_block,
  43. 265 setvar:!IP.bf_counter,
  44. 266 expirevar:IP.bf_block=600"
  45. 267 </LocationMatch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement