thelonelycoder
Part of the Furniture
That does not help if your script blocks the IP.Oops, sorry about that. Need to add a note to AB users to whitelist that domain
AB works fine, dnsmasq resolves the domain but one of your rules blocks the IP.
That does not help if your script blocks the IP.Oops, sorry about that. Need to add a note to AB users to whitelist that domain
I think you may have misunderstood. I meant that users of this script (who are also AB Solution users) will need to whitelist the pgl.yoyo.org domain. Since ya-malware-block does not have its own whitelisting, but there is another script that I maintain that do, the way to whitelist a domain is to add that to the whitelist domains file there, and then run both the scripts together: First the ya-malware-block and then the iblocklist-loader (to effect the whitelisting). I have tried this out myself, and I'm able to update the hosts lists using your AB script.That does not help if your script blocks the IP.
AB works fine, dnsmasq resolves the domain but one of your rules blocks the IP.
That is a hard limitation of ipset v4 only. Since this script does both v4 and v6, the handling is done the same way for both versions.Is the max IP blocked is 65535 ? I guess that's wjy there is 3 sets for IP ?
BLOCKLIST_INDEXES=""
	Not going to happen by me, these are entirely different approaches to blocking.Add to the end of ya-malware-block.sh and pgl.yoyo.org should resolve and will be part of the schedule. Now give me some likes. JK!
WISH LIST: YAMB integrated with AB-Solution
ipset -D YAMalwareBlock1IP 213.230.210.230
You can do it if you want, but it is not definite in which set exactly it will go (YAMalwareBlock1IP or YAMalwareBlock2IP or YAMalwareBlock3IP)Add to the end of ya-malware-block.sh and pgl.yoyo.org should resolve and will be part of the schedule. Now give me some likes. JK!
WISH LIST: YAMB integrated with AB-Solution
ipset -D YAMalwareBlock1IP 213.230.210.230
You can do it if you want, but it is not definite in which set exactly it will go (YAMalwareBlock1IP or YAMalwareBlock2IP or YAMalwareBlock3IP)
Also, there should be a general way of adding the exceptions, not on the scripts themselves.
See posts #167 and #171. If there is an established way to do it already, wouldn't that be just extra processing? I'd like to keep this as small and lean as possible. Having said that, you can obviously modify this to your likingI know. The best way to do this would be to have an external whitelist txt file that a user can enter an IP per line.
Then at the end of your script, do a loop test for each IP in the whitelist.txt if exists in each of the sets
Thank you. I have an even faster one coming up shortly. Cuts the runtime by more than half. I'll post here soon (maybe tomorrow)BTW: great work on this script. It's very fast!
Sorry for the late reply. I can confirm that my dropbox sync is working fine.Dropbox syncing broken too
Same issue here as well. I have this in services-startHi @redhat27 Im using ab solutions from @thelonelycoder and I dont see to be able to whitelist pgl.yoyo.org after whitelisting it, Im using the ipset script running at boot in the post-mount script, and then a manually run your other malware script, Im not clear how to make this work, please help, thanks
sh /jffs/scripts/create-ipset-lists.sh
sh /jffs/scripts/IPSET_Block.sh init ipset
sh /jffs/scripts/ya-malware-block.sh
sh /jffs/scripts/iblocklist-loader.sh
	apple.com # blocked by TBG Primary-Threats
bbc.co.uk # blocked by TBG Primary-Threats
eotugame.com #blocked by Squidblacklist Malicious (premium)
icloud.com # blocked by TBG Primary-Threats
mail.live.com # Hotmail blocked by TBG Primary-Threats
speedtest.net # blocked by Yoyo Adservers
teamviewer.com # blocked by Bluetack Level1
bing.com # bing search engine
pgl.yoyo.org # blocked by FireHOL lists used by ya-malware-block
	I will update the post #1 shortlyrm /jffs/ipset_lists/ya-malware-block.url_list
/jffs/scripts/ya-malware-block.sh
	/jffs/scripts$ /jffs/scripts/ya-malware-block.sh
ipset v6.29: Error in line 13899: Element cannot be added to the set: it's already added
ipset v6.29: Error in line 4663: Element cannot be added to the set: it's already added
	May 20 18:00:01 Firewall: /jffs/scripts/ya-malware-block.sh: Adding ya-malware-block rules to firewall...
May 20 18:00:06 Firewall: /jffs/scripts/ya-malware-block.sh: Loaded sets YAMalwareBlock1IP (0) YAMalwareBlock2IP (5975) and YAMalwareBlockCIDR (0) in 5 seconds
	
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!