From a6fdf3921e9d135b5ffe9cf5a8f91a5bf6f223b9 Mon Sep 17 00:00:00 2001 From: sceox Date: Wed, 18 Nov 2020 16:17:00 -0800 Subject: [PATCH] update README --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8872e61..d0c16f6 100644 --- a/README.md +++ b/README.md @@ -6,18 +6,26 @@ stopforumspam API](https://www.stopforumspam.com/usage) and system firewall To deploy: -1. Modify the configuration variables in the scripts as neede. +1. Modify the configuration variables in the scripts as needed. 2. Copy the scripts to `/usr/local/bin` (requires root): install -m 755 -o root -g bin forumspam.sh /usr/local/bin/forumspam.sh install -m 755 -o root -g bin q2a_usercheck.sh /usr/local/bin/q2a_usercheck.sh + install -m 640 -o _forumspam /dev/null /var/log/forumspam.log 3. Create the user the scripts will run as: useradd -s /sbin/nologin _forumspam -4. If using `pf`: +4. Set up the firewall program + +If using `ufw`, install it: + + apt update + apt install ufw + +If using `pf`: Create appropriate permissions for the file: @@ -55,3 +63,6 @@ TODO: * also check against [botscout](http://botscout.com/api.htm) * give the scripts more sensible names * also create an rc script +* support `iptables` +* create a Makefile +* merge the two scripts into one