Browse Source

make fail2ban fixes

Troglodyne 2 năm trước cách đây
mục cha
commit
f726828266
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      Makefile
  2. 1 1
      fail2ban/tcms-filter.conf

+ 1 - 1
Makefile

@@ -73,7 +73,7 @@ reset-remove:
 fail2ban:
 	sudo ln -sr fail2ban/tcms-jail.conf   /etc/fail2ban/jail.d/tcms.conf
 	sudo ln -sr fail2ban/tcms-filter.conf /etc/fail2ban/filter.d/tcms.conf
-	sudo systemctl fail2ban reload
+	sudo systemctl reload fail2ban
 
 .PHONY: nginx
 nginx:

+ 1 - 1
fail2ban/tcms-filter.conf

@@ -1,4 +1,4 @@
 [Init]
-datepattern=%Y-%m-%dT%H:%M:%SZ
+datepattern=%%Y-%%m-%%dT%%H:%%M:%%SZ
 [Definition]
 failregex=^ \[INFO\]: RequestId [\d\w-]+ From <HOST> \|nobody\| \w+ 4\d{2} http