I wish I could use diversion on an a single board computer
3 million+ blocked domains, puts a drain on the hardwareCan I ask why? It runs perfectly well on the router, unless, of course, you don’t have an Asus or a supported model.
Here is one way.hi
I think that a built in self-updating version of PiHole would be a really big feature update for Merlin. I know there are scripts out there to install it, but why not include it into Merlin?
Can I ask why? It runs perfectly well on the router, unless, of course, you don’t have an Asus or a supported model.
3 million+ blocked domains, puts a drain on the hardware
Lol I had a lot of ad block lists, some are tracking others a privacy and security, when the router comes with at least 4 GB ram I'd probably install diversion at that point, I had pi hole before I knew of the existence of diversion or I probably would have started with it instead.Well, make them 300 million+ and your Internet will turn into a dedicated line between you and your neighbour, until you decide to block him as well. Where is this blocking obsession coming from? If you unplug the WAN you block them all, no software required.
#!/bin/sh
# Choose from here https://github.com/StevenBlack/hosts
HOSTS_RAW=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
#HOSTS_RAW=https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts
TMP_LOCATION=/tmp
wget $HOSTS_RAW -P $TMP_LOCATION
awk '$1 == "0.0.0.0" { print "address=/"$2"/0.0.0.0/"}' $TMP_LOCATION/hosts > /jffs/configs/dnsmasq.conf.add
#clean up!
rm $TMP_LOCATION/hosts
service restart_dnsmasq
We can call them silly for wasting electrity.It's not and obsession consideration given to the many other pinole users that run it from a virtual machine.
That's more or less with as much as I started into the now-called Diversion ad-blocking adventure back in 2014.You don't even need Diversion lol. First go find a hosts blocklist then take a look at this script. I've configured the script for our routers below. It downloads the Steven Black blocklist, converts it and writes the results to /jffs/configs/dnsmasq.conf.add.
Disclaimer: This is an extremely lazy solution, use at own risk. This hosts file is also notorious for having legitimate sites on the blocklist.
Code:#!/bin/sh # Choose from here https://github.com/StevenBlack/hosts HOSTS_RAW=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts #HOSTS_RAW=https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts TMP_LOCATION=/tmp wget $HOSTS_RAW -P $TMP_LOCATION awk '$1 == "0.0.0.0" { print "address=/"$2"/0.0.0.0/"}' $TMP_LOCATION/hosts > /jffs/configs/dnsmasq.conf.add #clean up! rm $TMP_LOCATION/hosts service restart_dnsmasq
We can call them silly for wasting electrity.
That's pretty much the exact same code that the original version of AB-Solution (the predecessor to Diversion) used back in 2014. In fact I still use a script very similar to that.
Then users wanted a whitelist, blacklist, option to select their own hosts files and pixelserv-tls for true https ad blocking.That's pretty much the exact same code that the original version of AB-Solution (the predecessor to Diversion) used back in 2014. In fact I still use a script very similar to that.
I'm "only" blocking 27,000 hosts but find that adding anything beyond that rapidly provides diminishing returns. So 3+ million hosts is obsessive as far as I am concerned.
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!