[BlueOnyx:26298] Re: Saving APF Blacklist opens firewall

John Simpson john at swajime.com
Thu Jun 15 09:09:45 -05 2023


I was mistaken regarding subscriptions being squelched, but a similar
script even simpler works:

    #

    stdbuf -i0 -o0 -e0 tail -F /var/log/httpd/access_log | stdbuf -i0 -o0
-e0 awk  '/fullname=&/ { print "banning " $2; system("apf -d " $2 " banned
subscribe hacker") }'

So, between the two scripts, I have what I need for now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20230615/21d3c5b2/attachment.html>


More information about the Blueonyx mailing list