This looks like an idea that can be implemented as plugin.
- maybe the ipgroup can be improved
- or a plugin like ipgroup can be created, but for users
- or maybe a authentication plugin that handles your ip-adresses
(existing authentication plugins:
https://www.dokuwiki.org/plugins?plugintype=128#extension__table )