Compare commits

..

No commits in common. "a512b79d5847b12c09126076078d453ad23e374e" and "d2a65b14a6f777b8ae6fcc47230c9f2b64aac713" have entirely different histories.

2 changed files with 2 additions and 20 deletions

View File

@ -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,16 +42,8 @@ If using sudo, add to your sudo config file:
Note: the path to `ufw` may be different depending on your linux distribution.
6. Register the systemd unit or rc script.
systemd:
sudo cp forumspam.service /etc/systemd/system/
sudo systemctl enable forumspam
sudo systemctl start forumspam
6. Register `q2a_usercheck.sh` as a systemd unit or rc script.
TODO:
* also check against [botscout](http://botscout.com/api.htm)
* give the scripts more sensible names
* also create an rc script

View File

@ -1,10 +0,0 @@
[Unit]
Description=Forumspam Block Daemon
[Service]
User=forumspam
Group=forumspam
ExecStart=/usr/local/bin/q2a_usercheck.sh
[Install]
WantedBy=multi-user.target