Add an IP Range to IP Bans List?

Hello - I understand how to add single ip addresses to the ip_bans.yaml file; however, I am getting recurrent login attempts from similar ip addresses, and instead of banning each one individually, I am curious if there is a way to add a range of ip addresses to the ip_bans.yaml

e.g., 192.168.1.0/24 (I tried this but it broke startup after a restart)

Thanks for this @echopage, I’ve added it. I’m having the same issues as you so hopefully this will stop the login attempts!