Skip to content

How can I stop Fail2ban from banning my external IP when attempting to access my Plex server? #3524

Closed Answered by sebres
glassman81 asked this question in Q&A
Discussion options

You must be logged in to vote

Please provide the log excerpt for successful as well as for failed attempts (that must be banned), so both type of messages.
The issue is - the failregex needs to be adjusted to match 401 failures but at the same time to ignore 401 for handshake, access attempt without authorization etc.
And please don't redact the log with <redacted ...>, just replace it how it is with some different URI, IP, etc (for IP one uses typically 192.0.2.1 or 2001:db8::1).

If you'd not see the difference between real failures and your false positive attempts, it'd be impossible to write proper failregex (see #2514 (comment) for detailed description of similar problem).
The only way would be then to increase ma…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@glassman81
Comment options

@sebres
Comment options

Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants