- Joined
- Apr 5, 2017
- Messages
- 133
- Likes
- 90
- Degree
- 0
I am running a small service and I want to ban clients that issue this disconnects too too frequently using fail2ban. I use pm2 as well so I think I have to monitor the logs from pm2 from fail2ban. What stumps me is how to do the regex for these two logs:
Any help would be great!
Code:
2017-11-16 13:59:21+0000 [_GenericHTTPChannelProtocol,3,127.0.0.1] Player disconnected (False, 1006, connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake))
Code:
2017-11-16 13:51:50+0000 [ProxyClient,client] ERROR: *IP_ADDRESS* RETURNED NO RESULT; CONNECTION: CLOSED;
Any help would be great!