Commit Graph

22 Commits

Author SHA1 Message Date
sceox
9721f91465 automatically set getroot and firewall command by OS 2021-12-27 15:36:45 -08:00
sceox
19ddf883ee improve IP address regex 2021-12-27 15:27:52 -08:00
sceox
c64617f937 set nologin shell correctly on different OSs 2021-12-27 15:26:58 -08:00
sceox
4a28125ee2 automatically set tail -F or -f by checking uname 2021-12-27 15:24:39 -08:00
sceox
df0f552ef2 handle difference in bsd vs linux tail options 2020-11-28 09:45:41 -08:00
sceox
bccf51d4a4 learn to sh right 2020-11-18 16:21:34 -08:00
sceox
323f926e53 do not cache IP on errors 2020-11-18 16:20:23 -08:00
sceox
17751c93f3 check for literal . when checking IP against cache 2020-11-18 16:18:52 -08:00
sceox
a6fdf3921e update README 2020-11-18 16:17:00 -08:00
sceox
e741dc37ee run systemd service as _forumspam user 2020-11-18 16:13:19 -08:00
sceox
a512b79d58 add a systemd service file 2020-10-12 14:57:52 -07:00
sceox
b48ae4f775 fix small doc issue 2020-09-06 15:45:57 -07:00
sceox
d2a65b14a6 try to do proper markdown in README
The gogs markdown parser didn't like how I did code blocks, so trying
something else.
2020-09-06 15:42:49 -07:00
sceox
97bd5b000a run with least privilege, support pf
* run the service as a low privilege user and use sudo/doas to add
      the block rules
    * add support for pf firewall
    * write documentation for the above
    * add abort function for handling error logging and exit cleanup
2020-09-06 15:20:12 -07:00
sceox
49d1f7524d log ufw errors to log file 2020-09-06 11:26:45 -07:00
sceox
4312d75e27 log date and ip on failure 2020-09-06 11:23:37 -07:00
sceox
20bbc771b6 only create cache if it does not exist 2020-09-06 11:21:40 -07:00
sceox
785ac91678 add TODO: also check against botscout api 2020-09-01 17:19:27 -07:00
sceox
ef85d6281f watch the httpd access log rather than the mysql database 2020-09-01 11:58:59 -07:00
sceox
3fc9117bff clean up temp file before exiting 2020-09-01 11:25:36 -07:00
sceox
36739fc638 prune duplicate ip addresses 2020-08-31 21:17:14 -07:00
sceox
592af617da initial commit 2020-08-31 21:05:23 -07:00