Closed subdavis closed 3 years ago
Hi, we didn't really test this kind of case. We are actually working to add the port support for the whitelist/blacklist. We though that:
Request.RemoteAddr output is: [ip]
but in fact
Request.RemoteAddr output is: [ip:port]
We will keep you in touch when it is done.
Hi,
We just released the 0.6.0 version of the fail2ban plugin. You can try this new version with your traefik. Thanks for the wait.
Clement
It doesn't seem like anyone has actually used this.
http.Request
docsIn my logs, I'm seeing:
A closer look at your IP parsing would indictate that you didn't read the
ParseIP
docsThis playground confirms
See how you have to
net.SplitHostPort(s)
?Your unit tests pass because you aren't using
Request.RemoteAddr
strings with ports.