From 3f061ea5b380688d2588c158d19f5a239c2bf291 Mon Sep 17 00:00:00 2001 From: kejilion <131984541+kejilion@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:17:47 +0800 Subject: [PATCH] =?UTF-8?q?fail2ban=E9=98=B2=E7=81=AB=E5=A2=99=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.local | 38 ++++++++++++++++++++++++++++++++++++++ sshd.local | 5 +++++ 2 files changed, 43 insertions(+) create mode 100644 nginx.local create mode 100644 sshd.local diff --git a/nginx.local b/nginx.local new file mode 100644 index 0000000..e62ebba --- /dev/null +++ b/nginx.local @@ -0,0 +1,38 @@ +[nginx-http-auth] + +enabled = true +mode = fallback +port = http,https +logpath = /home/web/log/nginx/access.log + + + +[nginx-limit-req] + +enabled = true +port = http,https +logpath = /home/web/log/nginx/access.log + + + +[nginx-botsearch] + +enabled = true +port = http,https +logpath = /home/web/log/nginx/access.log + + + +[nginx-bad-request] + +enabled = true +port = http,https +logpath = /home/web/log/nginx/access.log + + + +[php-url-fopen] + +enabled = true +port = http,https +logpath = /home/web/log/nginx/access.log diff --git a/sshd.local b/sshd.local new file mode 100644 index 0000000..0093ce0 --- /dev/null +++ b/sshd.local @@ -0,0 +1,5 @@ +[sshd] + +enabled = true +mode = normal +backend = systemd