Page 1 of 1

blocklist count

Posted: Sat Feb 10, 2018 7:42 am
by me2018
I've compiled a blocklist which contains 924491 unique entries. However when this is imported into transmission it reports 'Blocklist has 284,099 rules'.

What happened with the other 640392 entries?

Re: blocklist count

Posted: Sat Feb 10, 2018 3:54 pm
by cfpp2p
They are grouped together in a range.

Re: blocklist count

Posted: Sat Feb 10, 2018 4:45 pm
by me2018
What does that mean exactly? Is there parsing on the address range in each line?

Would '123 bads:123.123.123.1-123.123.123.200' omit ''456 bads:123.123.123.10-123.123.123.100'

Re: blocklist count

Posted: Mon Feb 12, 2018 4:31 pm
by cfpp2p
ranges can span. for example a blocklist to ban all:

block ALL x:0.0.0.0-255.255.255.255

to block all but two ips:

block ALL x:0.0.0.0-10.0.0.211
block ALL x:10.0.0.213-192.168.1.76
block ALL x:192.168.1.78-255.255.255.255

So transmission will sort out your blocklist to produce the most efficient compact blocklist from all of your blocklist entries. See blocklist.c https://github.com/transmission/transmi ... locklist.c