Compare commits
2 Commits
d2a65b14a6
...
a512b79d58
Author | SHA1 | Date | |
---|---|---|---|
|
a512b79d58 | ||
|
b48ae4f775 |
12
README.md
12
README.md
@ -29,7 +29,7 @@ Add the following to `/etc/pf.conf`, preferably high up in the ruleset:
|
||||
block in quick on egress from <forumspam>
|
||||
block out quick on egress to <forumspam>
|
||||
|
||||
5. Give the `forumspam` user restrictive sudo or doas permissions:
|
||||
5. Give the `_forumspam` user restrictive sudo or doas permissions:
|
||||
|
||||
If using doas, add the following to `/etc/doas.conf`:
|
||||
|
||||
@ -42,8 +42,16 @@ If using sudo, add to your sudo config file:
|
||||
|
||||
Note: the path to `ufw` may be different depending on your linux distribution.
|
||||
|
||||
6. Register `q2a_usercheck.sh` as a systemd unit or rc script.
|
||||
6. Register the systemd unit or rc script.
|
||||
|
||||
systemd:
|
||||
|
||||
sudo cp forumspam.service /etc/systemd/system/
|
||||
sudo systemctl enable forumspam
|
||||
sudo systemctl start forumspam
|
||||
|
||||
TODO:
|
||||
|
||||
* also check against [botscout](http://botscout.com/api.htm)
|
||||
* give the scripts more sensible names
|
||||
* also create an rc script
|
||||
|
10
forumspam.service
Normal file
10
forumspam.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Forumspam Block Daemon
|
||||
|
||||
[Service]
|
||||
User=forumspam
|
||||
Group=forumspam
|
||||
ExecStart=/usr/local/bin/q2a_usercheck.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user