-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail2Ban API Banlist Error #6089
Comments
This is usually the case when you currently have no banned IPs, hence the json is empty and returns this error in a browser. If you curl the URL, you will just get an empty response as expected if now hosts banned. Can you confirm that in your UI it says No active bans just above the URL? That will confirm it is not a bug but just expected behaviour. |
Thanks @apio-sys - See attached screenshot, although I have one banned IP is still throws the error :( |
And if you curl the URL do you get any output? |
@apio-sys Sure do. |
OK so data is there then. Maybe something to do with formatting. I don't see curly brackets around the data. Have you tried different browsers to open the URL? If you go to "raw data" don't you see the same output as in curl? Sorry out of ideas otherwise. |
Thanks @apio-sys - Yeah, tried other browsers. Raw data shows the error. I suspect all users have the same issue. |
I think you are right. I'll try to confirm this as soon as I catch an IP in fail2ban, currently have none. The data is there, it's just the formatting which doesn't seem proper json. |
@andryyy Just wondering if there was any progress on this one? |
Me? Did you by chance ping the wrong guy? :) |
Oh sorry @andryyy. |
Same here. Error with one entry or without any. No change after recreating the API URL/token |
@foorschtbar Not sure if anyone from mailcow is looking at this? Would love to see it get fixed soon so that I am able to manage blocked IP addresses via OPNsense. |
We'll take a look at this soon. |
The endpoint returns a simple list not json. |
Thanks team :) |
Contribution guidelines
I've found a bug and checked that ...
Description
Logs:
Steps to reproduce:
Which branch are you using?
master
Which architecture are you using?
x86
Operating System:
Ubuntu 22.04
Server/VM specifications:
10GB
Is Apparmor, SELinux or similar active?
Yes
Virtualization technology:
Proxmox
Docker version:
Latest
docker-compose version or docker compose version:
Latest
mailcow version:
2024-08a
Reverse proxy:
Nginx
Logs of git diff:
Logs of iptables -L -vn:
Logs of ip6tables -L -vn:
Logs of iptables -L -vn -t nat:
Logs of ip6tables -L -vn -t nat:
DNS check:
The text was updated successfully, but these errors were encountered: