What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Every time I re-boot my iMac, I have to disable and re-enable ad blocking in Diversion for it to block ads again. Has anyone else experienced this?
 
Open WinSCP and go to:
Code:
/opt/share/diversion/list
Double click on hostslist


Add this Custom hosts list:

Code:
https://someonewhocares.org/hosts/zero/hosts
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0
https://hosts-file.net/ad_servers.txt
https://hosts-file.net/grm.txt
https://hosts-file.net/emd.txt
https://hosts-file.net/exp.txt
https://hosts-file.net/hjk.txt
https://hosts-file.net/mmt.txt
https://hosts-file.net/psh.txt
https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
https://raw.githubusercontent.com/WindowsLies/BlockWindows/master/hosts
https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
https://zerodot1.gitlab.io/CoinBlockerLists/hosts
https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts


Extra host for block Social Media: (I do not use it)
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts

- I use the version of StevenBlack hosts that also blocks fakenews, gambling and porn.
- I deleted adblock.mahakala.is because it gives me problems with
facebook.
- I delete the hosts that are already included in StevenBlack hosts, but leave these someonewhocares.org and pgl.yoyo.org, because some of their hosts are not added on the StevenBlack hosts.
- StevenBlack hosts use CoinBlocker version browser (2,500 hosts) and I use the full version (12,000 hosts)

How can I do this on my iMac ...

Code:
xxxx@RT-AC86U-1960:/tmp/home/root# cd /opt/share/diversion/list
xxx@RT-AC86U-1960:/tmp/mnt/RT-AC68U/entware/share/diversion/list# ls
blacklist       hostslist       wc_blacklist
blockinglist    plus-hostslist  whitelist

??? do I vi into hostslist and add the urls?

xxxx@RT-AC86U-1960:/tmp/home/root#  vi /hostslist
 
How can I do this on my iMac ...

Code:
xxxx@RT-AC86U-1960:/tmp/home/root# cd /opt/share/diversion/list
xxx@RT-AC86U-1960:/tmp/mnt/RT-AC68U/entware/share/diversion/list# ls
blacklist       hostslist       wc_blacklist
blockinglist    plus-hostslist  whitelist

??? do I vi into hostslist and add the urls?

xxxx@RT-AC86U-1960:/tmp/home/root#  vi /hostslist
Use the terminal app...
 
Use the terminal app...

Yeah, I understand that. But I'm asking do I just add the url's to 'hostslist' using a command line editor. I ask as the hostslist appears to be empty. And I'm just double checking this is the correct thing to do, so I don't screw something up.
 
I am still having major issues with Diversion restarting dnsmasq over and over again, which breaks websites and blocking. This time it started after disabling samba. If as you say, you don't have the patience to help iron this out, I'm considering a factory default. Now that diversion no longer uses jffs, how do we properly backup our settings and blocklists prior to and after a factory default? Will making a copy of the diversion folder into /jffs/ and restoring it over a fresh installation do the trick?
 
Last edited:
Oh, tons of things. Too much to discuss here, as I already went off-topic at least once this week :D. Google for 'entware-ng repository' to see what packages are available on Github. As for Skynet, that's another must-have (if you'd ask me). More info in this thread: https://www.snbforums.com/threads/s...mic-malware-country-manual-ip-blocking.16798/

Sorry to go off topic again, but entware-ng appears to be archived, can I use the new 'Entware' https://github.com/Entware/Entware ?
 
@Skeptical.me are you getting any notable entries in your log when this occurs?

I'm only a noob, I'm not aware of how to check the log, I see its enabled, but I'm not aware how to read it. I only know how to stop and start it.
 
Yup thats the one..... heres a list of packages... varies a bit depending on architecture
http://bin.entware.net/armv7sf-k3.2/Packages.html
just type
Code:
opkg list
at the command prompt and you will get spammed with a similar list

WOW, thats a lot of stuff to learn about. That's an incredible amount of things you can install. I had no idea. I thought there'd be a lot but thats a massive amount.

Thanks for that.
 
Ok people, I see that Diversion saves a backup file somewhere in the usb, so upon factory default it detects this and effectively retains all prior settings.
 
Maybe @kvic has more patience than I do.

I'd love to troubleshoot and iron out any bugs for the greater good of all, do let me know when you have any & I'd be happy to help make this great program even better.

I provided all my logs and data, factory defaulted, applied settings manually, reinstalled everything and the problem persists, diversion keeps on loading and unloading over and over again while restarting dnsmsq. I can see it loading and unloading into the ram. This time after a sig update. Last time after disabling samba, and typically after processing block lists. I had to hit "apply" on lan to regain internet access and stop the cycle.

I think I'll be forced to switch back to Ab-solution, then I can factor out if this is in fact Diversion or something else, and if this works it will be better than how it stands now.
 
Last edited:
@thelonelycoder Ok reverted to Ab-Solution! W/ a little jumping through hoops, got it working. Diversion uninstaller left behind some script entries including one pointing ab-solution to a diversion /opt folder.

Had to change it to this:

services-stop:
# generated by AB-Solution 3.11
/opt/etc/init.d/rc.unslung stop # Added by Diversion


So far so good.
 
Last edited:
@thelonelycoder Ok reverted to Ab-Solution! W/ a little jumping through hoops, got it working. Diversion uninstaller left behind some script entries including one pointing ab-solution to a diversion /opt folder.

Had to change it to this:

services-stop:
# generated by AB-Solution 3.11
/opt/etc/init.d/rc.unslung stop # Added by Diversion


So far so good.
You selected to uninstall Diversion but leave Entware installed. For Entware to still work, Diversion leaves post-mount, post-mount.div (a minimal version of it) and services-stop in the /jffs/scripts folder.
AB-Solution does not recognise these entries, being the predecessor of Diversion.
You will understand that.
 
I am new to this, using diversion w/o pixelserv ( no idea what that is since it was asking for an IP ), should I stick to this or better solution to adblock for a novice
 
I am new to this, using diversion w/o pixelserv ( no idea what that is since it was asking for an IP ), should I stick to this or better solution to adblock for a novice

Diversion is the successor to AB-Solution and I would say it's actually more convenient for novice users, so I'd stick to it if I were you.

As for pixelserv-tls, the first two lines from the start of the pixelserv-tls thread say it all:

pixelserv-tls is a tiny bespoke HTTP/1.1 webserver with HTTPS and SNI support. It acts on behalf of hundreds of thousands of advert/tracker servers and responds to all requests with nothing to speed up web browsing.

It 'simply' acts like it's the ad or tracker server and responds lightning fast by sending a 1 pixel image in return. This happens on your own network, in most cases on your router, hence it speeds up browsing while providing an ad free experience, when combined with Diversion for example.

You can find more info in the wiki: Why would I want pixelserv-tls?

For a more in depth article, read @kvic's blog: https://kazoo.ga/pixelserv-tls-more-is-less/
 
i noticed that in the post-conf.div file you have this piece of code
Code:
if [ -s "${DIVERSION_DIR}/.conf/diversion.conf" ]; then

    if [ -f /tmp/diversion.lock ]; then
        logger -t Diversion "diversion.conf is locked by another process, waiting 3secs, from $0"
        sleep 3
        rm -f /tmp/diversion.lock
    fi
seeing as post-conf.div is called from dnsmasq.postconf does this mean that dnsmasq won't restart for 3 seconds? .... I'm wondering if there is an edge case where some other process sees dnsmasq not started during that 3 secs, and then tries to restart it.... and rinse and repeat..... *pure speculation mode ON*
 
Welcome
This is Diversion - the Router Adblocker for Asuswrt-Merlin


AB-Solution is now Diversion

All install and update info, as well as other useful information is on the Diversion website.

September 14, 2018
Small update, no version change. See here:
https://www.snbforums.com/threads/diversion-the-router-adblocker.48538/page-20#post-430826

September 9, 2018
Diversion 4.0.1 is now available
See this post or the website for the change log

Diversion is free to use under the GNU General Public License version 3 (GPL-3.0).
If you like Diversion and find it useful, you can help it's further development with a donation.
Thank you!

To see the fancy ticks and crosses that Diversion shows during operations, make sure your SSH terminal encoding is set to UTF-8.

Diversion is interactive. To start the Diversion UI after installation, use
Code:
diversion
For quick operation options without starting the UI, use
Code:
diversion help
to make yourself familiar with the available options.

Screenshots of Diversion 4.0, standard and extended menu (more options o)

d5nZGgK.png


Everyday, at some point, the ad blocking stops working so I have to shh into the router and turn ad blocking off and back on again to get it working again. Is this a common issue?
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top