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.82k stars 210 forks source link

CIDR denylists #1599

Open mrbluecoat opened 2 months ago

mrbluecoat commented 2 months 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 month 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 month ago

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