This release mainly adds support for local IP lists. This feature allows users to import files containing newline-separated IPv4 or IPv6 addresses and have geoip-shell automatically add them to locally stored allowlist or blocklist. The blocklist takes precedence over the allowlist, which takes precedence over geoblocking rules. The syntax is:
geoip-shell configure [-A|-B] <path_to_file>
Use -A
to import the file as an allowlist, -B
to import the file as a blocklist. You can import multiple files sequentially - this way geoip-shell will add all ip addresses in all source files to local allowlist/blocklist. Note that each source file can only contain IP addresses of one family (IPv4 or IPv6 but not both). Source files containing IP ranges in CIDR format are supported as well.
By default, imported local IP lists are stored in /etc/geoip-shell/local_iplists
on OpenWrt, or in /var/lib/geoip-shell/local_iplists
on all other systems. To change the directory where local IP lists are stored, use the command
geoip-shell configure -L <path_to_directory>
The command geoip-shell status
will now report when any local IP lists are in use. geoip-shell status -v
will report the exact count of IP addresses or IP ranges in relevant ipsets.
The README has been updated with some additional details regarding this feature.
Thank you @oraculix for requesting this feature.
Full Changelog: v0.6.8...v0.6.9