View · Search · Index

Using Fail2Ban with OpenACS

If automated scanners repeatedly probe your OpenACS site for exposed files or known vulnerabilities, Fail2Ban can reduce unwanted traffic and log noise by temporarily blocking repeat sources. On Linux, run Fail2Ban where it can read NaviServer’s system log and enforce bans against the client addresses recorded there.

  1. Log confirmed probes. In your OpenACS request handler or filter, emit the marker below after a request matches a site-defined probe rule. Keep ordinary 404s and normal crawler traffic out of the ban count. The marker needs only the client address. Leave raw URLs and headers out of it.

    ns_log Notice "F2B_NAVISERVER_PROBE ip=[ns_conn peeraddr]"
    
  2. Configure the filter and jail. Use the filter and jail examples in the NaviServer guide. Set logpath to the actual system log on your host, and choose the firewall action for your deployment. Protecting NaviServer with Fail2Ban

  3. Test before enabling bans. Run fail2ban-regex against your real system log. Check that the filter matches the probe markers and leaves ordinary log entries alone. After enabling the jail, confirm it is active with sudo fail2ban-client status naviserver-probes. Filter testing and jail setup

Reverse proxies and Docker. Trust forwarded client addresses only from known proxies, and enforce bans where the firewall can see the real client IP. With Docker bridge networking, give the host’s Fail2Ban process access to the container’s log and use the guide’s Docker-specific firewall instructions. NaviServer deployment examples

previous December 2026
Sun Mon Tue Wed Thu Fri Sat
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2

Popular tags

17 , 5.10 , 5.10.0 , 5.10.1 , 5.9.0 , 5.9.1 , ad_form , ADP , ajax , aolserver , asynchronous , Azure , bgdelivery , bootstrap , bugtracker , CentOS , COMET , compatibility , conference , CSP , CSRF , cvs , debian , docker , docker-compose , emacs , engineering-standards , exec , fedora , FreeBSD
1 registered user in community xowiki
in last 30 minutes
Contributors

OpenACS.org