update README
This commit is contained in:
parent
e741dc37ee
commit
a6fdf3921e
15
README.md
15
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
|
||||
|
Reference in New Issue
Block a user