# This file is part of shadowsocks-libev. # # Shadowsocks-libev is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This file is default for Debian packaging. See also # /etc/default/shadowsocks-libev for environment variables.
[Unit] Description=Shadowsocks-libev Default Server Service Documentation=man:shadowsocks-libev(8) After=network-online.target Wants=network-online.target
failregex = ^.*ERROR.*can.t decrypt.*from\s+<HOST>.*$ ^.*ERROR.*invalid password.*from\s+<HOST>.*$ ^.*ERROR.*authentication failed.*<HOST>.*$ ^.*WARNING.*wrong password.*<HOST>.*$ ^\s*\S+ \S+\s+ERROR:\s+failed to handshake with <HOST>:\d+ ^\s*\S+ \S+\s+ERROR:\s+tcp_recv_decrypt:\s+invalid password or cipher from <HOST>:\d+ ^\s*\S+ \S+\s+ERROR:\s+repeating salt detected from <HOST>:\d+ ^\s*\S+ \S+\s+ERROR:\s+unable to parse header when handling connection from <HOST>:\d+
❯ sudo fail2ban-client status Status |- Number of jail: 3 `- Jail list: recidive, shadowsocks, sshd
❯ sudo fail2ban-client status | grep "Jail list:" | sed -e 's/.*Jail list:[ \t]*//' -e 's/,//g' | xargs -n1 sudo fail2ban-client status Status for the jail: recidive |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- Journal matches: _SYSTEMD_UNIT=fail2ban.service PRIORITY=5 `- Actions |- Currently banned: 0 |- Total banned: 0 `- Banned IP list: Status for the jail: shadowsocks |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- Journal matches: `- Actions |- Currently banned: 0 |- Total banned: 0 `- Banned IP list: Status for the jail: sshd |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- Journal matches: _SYSTEMD_UNIT=sshd.service + _COMM=sshd `- Actions |- Currently banned: 0 |- Total banned: 0 `- Banned IP list: