0xERR0R / blocky

Fast and lightweight DNS proxy as ad-blocker for local network with many features
https://0xERR0R.github.io/blocky/
Apache License 2.0
4.68k stars 208 forks source link

CIDR denylists #1599

Open mrbluecoat opened 1 month ago

mrbluecoat commented 1 month ago

Ref #90

Just to confirm, is a netset containing CIDR entries like https://iplists.firehol.org/files/firehol_level1.netset supported as an entry in denylists?

ben-auo commented 1 week ago

@0xERR0R , thoughts? I'm also getting this error on the latest Blocky 0.24 release:

[2024-10-02 01:06:36]  WARN list_cache: parse error: line 4: 3 errors occurred:
    * invalid domain name: 1.11.12.13/32
    * invalid ip: 1.11.12.13/32
    * unsupported wildcard '1.11.12.13/32': must start with '*.' and contain no other '*'
ben-auo commented 1 week ago

Perhaps explode the blocklist row if CIDR is detected, like https://github.com/shoxxdj/ipl/blob/main/main.go