My iPhone regularly (usually when I am changing my location) tries to access “/api/ios/config” which does not exist. This leads to 404-errors in my log files. Because I am using fail2ban, ultimately my device gets banned.
Is this a bug in the app or is my homeassistant server missing something?
This is valid behavior for the app – it’s testing for if the ios integration is loaded and, if so, what its configuration is. You should not be banning clients for issuing requests which 404, this is not an authentication-invalid response.
I have this problem too.
I think it is a perfectly good reason to ban. There are a lot of bots probing open endpoints, and a 404 is a very convenient way to block them.
I’ll guess the way to get around it right now is to except the /api/ios/config path in the jail-config.