Hi,

Under System -> Configuration -> Options -> Fail2ban parameters I see there is a “See a list of banned IPs below: network (remaining ban time) - [actions].”

Followed by a URL like this
https://mail.example.com/api/v1/get/fail2ban/banlist/38393b86-2e29-4f87-be54-603d9xxxxxxx

Am I correct to assume that I could simply open this URL and see which IP, its remaining ban time, available actions without logging into mailcow UI?

I tried without logging in, and it says I am unauthorized. Even after I had logged in as admin, it still says I am unauthorized.

  • So, what is its function?
  • And what configuration that I need to make to correct that error?

Thank you
Henry

  • For using this url you need to check “Manage Fail2Ban externally”. It’s intended as “export” of banned ips for example if you use firewall on the edge of your network, so you can stop bad actors early.

    For what API can do see this docs

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

No one is typing