Version 2.4 is up.
Tomato version also updated.
This is a minor display fix release, where the counts of the discrete IPs and CIDR ranges are displayed when run from console.
This is a sample run on my (slow) router from the terminal with the default blocking (Level1 through Level3)
Code:
admin@RT-AC66R-D700:/tmp/home/root# ya-malware-block.sh
/jffs/scripts/ya-malware-block.sh: Adding ya-malware-block rules to firewall...
>>> Downloading and aggregating malware sources (also processing whitelists)...[131428/122042/9386] ~11s
>>> Adding data and processing rule for YAMalwareBlock1IP... ~4s
>>> Adding data and processing rule for YAMalwareBlock2IP... ~4s
>>> Adding data and processing rule for YAMalwareBlockCIDR... ~1s
>>> Cleaning up... ~0s
/jffs/scripts/ya-malware-block.sh: Loaded sets YAMalwareBlock1IP (65535) YAMalwareBlock2IP (56507) and YAMalwareBlockCIDR (9386) in 20 seconds
Note: the [
131428/
122042/
9386] at the top? It is the [total entries/discrete IPs/CIDR ranges] count after aggregating the sources and eliminating duplicates and applying custom blacklists/whitelists
YAMalwareBlock1IP (65535) YAMalwareBlock2IP (56507): 65535+56507=
122042 (discrete IPs)
YAMalwareBlockCIDR (
9386) =
9386 (CIDR ranges)
122042+9386=131428 (Total)
And this is with all 4 Levels enabled:
Code:
admin@RT-AC66R-D700:/tmp/home/root# ya-malware-block.sh
/jffs/scripts/ya-malware-block.sh: Adding ya-malware-block rules to firewall...
>>> Downloading and aggregating malware sources (also processing whitelists)...[250472/238198/12274] ~23s
>>> Adding data and processing rule for YAMalwareBlock1IP... ~5s
>>> Adding data and processing rule for YAMalwareBlock2IP... ~5s
>>> Adding data and processing rule for YAMalwareBlock3IP... ~5s
>>> Adding data and processing rule for YAMalwareBlock4IP... ~3s
>>> Adding data and processing rule for YAMalwareBlockCIDR... ~2s
>>> Cleaning up... ~0s
/jffs/scripts/ya-malware-block.sh: Loaded sets YAMalwareBlock1IP (65535) YAMalwareBlock2IP (65535) YAMalwareBlock3IP (65535) YAMalwareBlock4IP (41593) and YAMalwareBlockCIDR (12274) in 43 seconds
Similarly:
[
250472/
238198/
12274] means 250472 Total, 238198 discrete IPs and 12274 CIDR ranges
65535+65535+65535+41593=
238198 discrete IPs and
12274 CIDR ranges for a total of
250472 source entries.