Hi Everyone,
I just want to input some info here,
1. It seems Plesk GUI currently not using UTF-8 Encoding for Fail2Ban Filter Add/Edit text area.
so Do Not Copy Past anything from Internet into the Filter Code editor, this may lead to Fail2ban to get stuck. Best way to add or create/edit Filter is use command line editor for now.
2. Use the actual line(s) in log files not the log you see in Plesk GUI.
3. Use this to create a simple failregex - you can match a log line here --> http://regexr.com/
4. Always test the Filter before you create a Jail and make sure you only get match for what you expected.
fail2ban-regex <Path/actual logfile>(Wildcard does not work here) /etc/fail2ban/filter.d/filter.local --print-all-matched
Thank you.
I just want to input some info here,
1. It seems Plesk GUI currently not using UTF-8 Encoding for Fail2Ban Filter Add/Edit text area.
so Do Not Copy Past anything from Internet into the Filter Code editor, this may lead to Fail2ban to get stuck. Best way to add or create/edit Filter is use command line editor for now.
2. Use the actual line(s) in log files not the log you see in Plesk GUI.
3. Use this to create a simple failregex - you can match a log line here --> http://regexr.com/
4. Always test the Filter before you create a Jail and make sure you only get match for what you expected.
fail2ban-regex <Path/actual logfile>(Wildcard does not work here) /etc/fail2ban/filter.d/filter.local --print-all-matched
Thank you.
Last edited: