I am running pi-hole on a Raspberry Pi 4 for 3 ½ years now.
I noticed recently that one of my PC regularly gets rate-limited often after coming back from sleep mode. All other PC/devices seem to be fine.
I cannot work out what the reason could be.
Thanks for any help
Sample section from the log
[2024-08-11 18:41:40.763 2405M] Rate-limiting 192.168.15.17 for at least 28 seconds
[2024-08-11 18:42:08.645 2405/T2441] Ending rate-limitation of 192.168.15.17
Let's try to get a hold of the domains that client is requesting to trigger the rate limit.
Run from your Pi-hole machine, what's the output of:
pihole-FTL sqlite3 /etc/pihole/pihole-FTL.db "SELECT domain, count(domain) FROM queries \
WHERE timestamp > strftime('%s','2024-08-11 18:40') AND timestamp < strftime('%s','2024-08-11 18:43') \
AND client = '192.168.15.17' \
GROUP BY domain ORDER BY 2 DESC LIMIT 15;"
I ran that query on the pihole-FTL.db but no results for that time bracket. I checked the db for another time bracket where rate-limiting took place with the same result. I would have thought that pi-hole should log those requests / domains?
This is currently showing in the Pi-hole diagnosis
2024-08-12 10:48:59 RATE_LIMIT Client 192.168.15.17 has been rate-limited (current config allows up to 1000 queries in 60 seconds)
I generated another debug log but I couldn't find that particular event?
Apologies, my bad. I checked through the Web Interface showing local time (I am on AEST) and I did not realise that the logs had different timestamp formats and pihole-FTL.db is using UTC. Now it makes sense.
Just a note - hitting a rate limit is not an error. It is a warning that a programmed limit has been reached. Pi-hole is notifying you that it has done what it has been programmed to do.