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!

You mean like the blocking list, right?
The blacklist, whitelist and wildcard-blacklist have an option to use a hosted list in el Edit <list>: 7. Use hosted <list>.
Enable it and enter the URL to a file that has valid entries. It must be in raw format, no html.

Sorry it was late at night lol. What I meant to say was when there is a change made to the whitelist is there a way for it to autoupdate on say a daily or weekly basis so these new changes are reflected in diversion. Or does it have to be done manually?

Also does the blacklist auto update and if so how frequently? If not how can I make both of these lists autoupdate on a weekly or daily interval?
 
Also does the blacklist auto update and if so how frequently? If not how can I make both of these lists autoupdate on a weekly or daily interval?
The hosted <list> is downloaded weekly if a change is detected, same as the blocking list. It can also be re-downloaded manually.
 
Is there a way to support adding additional dnsmasq directives to the alternate instance?

e.g. addn-hosts=/jffs/configs/apps.hosts

I'd like to add some host mappings that I use on the primary dnsmasq

EDIT: solved with some clever postconf scripting
 
Last edited:
Is there a way to support adding additional dnsmasq directives to the alternate instance?

e.g. addn-hosts=/jffs/configs/apps.hosts

I'd like to add some host mappings that I use on the primary dnsmasq

EDIT: solved with some clever postconf scripting
There's an option to include /jffs/configs/dnsmasq.conf.add in the alternate blocking list settings.
 
There's an option to include /jffs/configs/dnsmasq.conf.add in the alternate blocking list settings.
There were some settings from the firmware dnsmasq.conf i was interested in and didn't want to duplicate them in .add

I'll enable that option to cut down my additions, thanks!
 
I have reinstalled diversion 3x already and no matter what i can not get pixelserv running.

ep pixelserv-tls 192.168.1.254 (not running)
pixelserv-tls info:

Package: pixelserv-tls
Version: 2.2.1-1
Depends: libc, libssp, librt, libpthread, libopenssl, libpthread
Status: install user installed
Section: net
Architecture: armv7-2.6
Size: 25363
Filename: pixelserv-tls_2.2.1-1_armv7-2.6.ipk
Description: pixelserv-tls is a tiny bespoke webserver for adblock with HTTP/1.1 and HTTPS support
Installed-Time: 1557623317
 
I have reinstalled diversion 3x already and no matter what i can not get pixelserv running.

ep pixelserv-tls 192.168.1.254 (not running)
pixelserv-tls info:

Package: pixelserv-tls
Version: 2.2.1-1
Depends: libc, libssp, librt, libpthread, libopenssl, libpthread
Status: install user installed
Section: net
Architecture: armv7-2.6
Size: 25363
Filename: pixelserv-tls_2.2.1-1_armv7-2.6.ipk
Description: pixelserv-tls is a tiny bespoke webserver for adblock with HTTP/1.1 and HTTPS support
Installed-Time: 1557623317
https://www.snbforums.com/threads/diversion-the-router-ad-blocker.48538/page-130#post-482770
 
I did that too and still get same result..

Diversion 4.0.9 by thelonelycoder


RT-AC88U (armv7l) FW-384.11 @ 192.168.1.1 IPv6


1.014M blocked domains 9 hosts file(s) in use

2.851M t 7,453 w 0 n ads since May 11 18:37

____________________________________________________


d Diversion Standard enabled

c communication DivUn stats backup FWun


a ad-blocking to IP 192.168.1.254

l logging /opt/var/log/dnsmasq.log

ep pixelserv-tls 192.168.1.254 (not running)

b blocking list Small+ Sun @ 2:00

el edit lists 48 w 512 b 0 wb

f follow dnsmasq.log

e exit Diversion more options o

___________________________________________________

Done pixelserv-tls enabled on IP 192.168.1.254
What do you want to do?
 
I did that too and still get same result..

Diversion 4.0.9 by thelonelycoder


RT-AC88U (armv7l) FW-384.11 @ 192.168.1.1 IPv6


1.014M blocked domains 9 hosts file(s) in use

2.851M t 7,453 w 0 n ads since May 11 18:37

____________________________________________________


d Diversion Standard enabled

c communication DivUn stats backup FWun


a ad-blocking to IP 192.168.1.254

l logging /opt/var/log/dnsmasq.log

ep pixelserv-tls 192.168.1.254 (not running)

b blocking list Small+ Sun @ 2:00

el edit lists 48 w 512 b 0 wb

f follow dnsmasq.log

e exit Diversion more options o

___________________________________________________

Done pixelserv-tls enabled on IP 192.168.1.254
What do you want to do?
That is a really weired address to use. Most of us have the router on xxx.xxx.x.1, with Pixelserv-TLS on xxx.xxx.x.2, and the DHCP range set from xxx.xxx.x.3-254 for clients. Change the IP used in Diversion, ep, then 5
Code:
 What do you want to do?  (ep)  <---- HERE
____________________________________________________
 This manages installed Entware packages.
 To check the pixelserv-tls stats, enter
 192.168.1.2/servstats into your browser.
 Entware (aarch64-k3.10) is installed at:
 /mnt/SNB/entware, mounted as /opt
 1. Disable pixelserv-tls
 2. Add or remove pixelserv-tls switches
 3. Purge generated pixelserv-tls certificates
 4. Restart pixelserv-tls
 5. Change pixelserv-tls IP  <---- HERE
 6. Manage Entware packages 
 Select what to do [1-6 e=Exit]
 
That is a really weired address to use. Most of us have the router on xxx.xxx.x.1, with Pixelserv-TLS on xxx.xxx.x.2, and the DHCP range set from xxx.xxx.x.3-254 for clients. Change the IP used in Diversion, ep, then 5
Code:
 What do you want to do?  (ep)  <---- HERE
____________________________________________________
 This manages installed Entware packages.
 To check the pixelserv-tls stats, enter
 192.168.1.2/servstats into your browser.
 Entware (aarch64-k3.10) is installed at:
 /mnt/SNB/entware, mounted as /opt
 1. Disable pixelserv-tls
 2. Add or remove pixelserv-tls switches
 3. Purge generated pixelserv-tls certificates
 4. Restart pixelserv-tls
 5. Change pixelserv-tls IP  <---- HERE
 6. Manage Entware packages
 Select what to do [1-6 e=Exit]

He is most likely using an alternate blocking file: https://diversion.ch/diversion/manual/alternate-blocking-file.html
 
That is a really weired address to use. Most of us have the router on xxx.xxx.x.1, with Pixelserv-TLS on xxx.xxx.x.2, and the DHCP range set from xxx.xxx.x.3-254 for clients. Change the IP used in Diversion, ep, then 5
Code:
 What do you want to do?  (ep)  <---- HERE
____________________________________________________
 This manages installed Entware packages.
 To check the pixelserv-tls stats, enter
 192.168.1.2/servstats into your browser.
 Entware (aarch64-k3.10) is installed at:
 /mnt/SNB/entware, mounted as /opt
 1. Disable pixelserv-tls
 2. Add or remove pixelserv-tls switches
 3. Purge generated pixelserv-tls certificates
 4. Restart pixelserv-tls
 5. Change pixelserv-tls IP  <---- HERE
 6. Manage Entware packages
 Select what to do [1-6 e=Exit]
It's not weird. But for file size it's better to use a single digit number.
192.168.1.254 adds more to the blocking list file size (and memory usage) then
192.168.1.2.
 
Last edited:
With diversion installed etc. and upgrading firmware, is there any special instructions to follow or just upgrade the firmware and everything else shouldn’t need interfering with? Asking since 384.11 is now available and I would like to upgrade.
 
With diversion installed etc. and upgrading firmware, is there any special instructions to follow or just upgrade the firmware and everything else shouldn’t need interfering with? Asking since 384.11 is now available and I would like to upgrade.
Which firmware are you running now? And for extra info which router?
 
With diversion installed etc. and upgrading firmware, is there any special instructions to follow or just upgrade the firmware and everything else shouldn’t need interfering with? Asking since 384.11 is now available and I would like to upgrade.

I may well be wrong but I’m presuming you haven’t seen L&LD’s authoritative guide, in which case, not only should you follow it to the letter, but you should also read the whole thread: there’s a lot of excellent advice in it.
 
I don't know why but sometimes "/bin/sh /opt/bin/diversion ash_history " make router CPU go high and even uninstalling diversion and disabling shell histery, doesn't solve this. Only killing proccess using 'htop' helped me bring down the CPU to idle.
 
I don't know why but sometimes "/bin/sh /opt/bin/diversion ash_history " make router CPU go high and even uninstalling diversion and disabling shell histery, doesn't solve this. Only killing proccess using 'htop' helped me bring down the CPU to idle.
It's running as a forked process, so once it's started, disabling shell history or uninstalling diversion won't stop it (as you found out), but it will stop it from running next time. It's doing a sort job on the shell history I think.

What I do instead to preserve shell history through reboots is add the following to /jffs/scripts/post-mount, and turn off shell history in diversion.
Code:
# If device has entware, link /root to entware /root
ENT="$(find $1/entware/root 2> /dev/null)"
if [ "$ENT" ]; then
    rm -rf /tmp/home/root
    ln -s /opt/root /tmp/home/root
    # also a good place to add cron jobs ("cru a ...") that depend on Entware features
fi
If you have only 1 USB device you only need
Code:
rm -rf /tmp/home/root
ln -s /opt/root /tmp/home/root
 
Last edited:
Once it's started, disabling shell history won't stop it, but it will stop it from running next time. It's doing a sort job on the shell history I think.

What I do instead to preserve shell history through reboots is add the following to /jffs/scripts/post-mount, and turn off shell history in diversion.
Code:
# If device has entware, link /root to entware /root
ENT="$(find $1/entware/root 2> /dev/null)"
if [ "$ENT" ]; then
    rm -rf /tmp/home/root
    ln -s /opt/root /tmp/home/root
    # also a good place to add cron jobs ("cru a ...") that depend on Entware features
fi
If you have only 1 USB device you only need
Code:
rm -rf /tmp/home/root
ln -s /opt/root /tmp/home/root
Thanks , I added the 2 lines .
 
where has the update option gone from this?
Used to be "u" to update and it's no longer there. I'm on version 4.0.7.

nevermind sorted, it's d and option 3 now.
 
where has the update option gone from this?
Used to be "u" to update and it's no longer there. I'm on version 4.0.7
Select (d) for Diversion.
Code:
 What do you want to do?  d
____________________________________________________
 Diversion options:
 1. Disable    Diversion
 2. Re-install Diversion Standard
 3. Update     Diversion Standard  u  <--- 
 4. Upgrade    Diversion
 5. Info/About Diversion
 6. Uninstall  Diversion
 Enter your selection [1-6 e=Exit]
 

Similar 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