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!

Diversion Diversion 5.4.4 - the Router Ad-Blocker, April 12, 2025

With Diversion enabled it prevents me from streaming from Peacock on all devices on my network.

How can I fix this?
What list are you using? I run standard size and never had issues.

Check with one of your affected devices to see whats being blocked while running Peacock TV:

SSH to router; within AMTM you can Choose Diversion -> f (follow dnsmasq.log), choose 4 (Blocked domains, by device IP), enter your device IP.

You may also try whitelisting the following:

Code:
cdn.cookielaw.org

Possibly related:

Pihole blocking PeacockTV - Help - Pi-hole Userspace https://search.app/DdzszChDe8zPyaQC9
 
Last edited:
What list are you using? I run standard size and never had issues.

Check with one of your affected devices to see whats being blocked while running Peacock TV:

SSH to router; within AMTM you can Choose Diversion -> f (follow dnsmasq.log), choose 4 (Blocked domains, by device IP), enter your device IP.

You may also try whitelisting the following:

Code:
cdn.cookielaw.org

Possibly related:

Pihole blocking PeacockTV - Help - Pi-hole Userspace https://search.app/DdzszChDe8zPyaQC9
Whitelisting these solved it:
bff-ext.clients.peacocktv.com
video-ads-module.ad-tech.nbcuni.com

I whitelisted cdn.cookielaw.org as well per your instructions to be safe, but is that necessary for anything else?

Guessing there's no way to really block Peacock ads then with adblock?
 
Installing uiDivStats today made me look at Diversion this morning and my WebUI is a bit hinky.

Intended Victim: RT-AX68U with Merlin 388.8.4 long time running Diversion and various amtm things fine.

WebUI page:
  1. Does not show 'enabled', despite CLI showing everything fine
  2. No count numbers shown
  3. Tabs (Lists, Options) are non-functional - clicking does nothing
Simple attempts so far:
  • force reinstall
  • reboots
Any suggestions welcome, certainly highly possible I have a local brokenness.

1739021711302.png


1739021805404.png
 
Intended Victim: RT-AX68U with Merlin 388.8.4 long time running Diversion and various amtm things fine.
Here you state that Intended Victim is RT-AX68U with Merlin 388.8.4, Entware, latest amtm and Diversion, handful of add-ons, etc. etc.
Tell us about "handful of add-ons, etc. etc."
 
Here you state that Intended Victim is RT-AX68U with Merlin 388.8.4, Entware, latest amtm and Diversion, handful of add-ons, etc. etc.
Tell us about "handful of add-ons, etc. etc."

Nothing unusual - just some of the most 'usual' amtm add-ons.

1739104963402.png


However because uiDivStats had the "opposite" type of problem (WebGUI page looks good but a bug with the CLI), @Martinski pointed out I probably have issues with Entware utility versions being picked up due to PATH issues and yep I have /opt/sed, grep, etc. Sounds likely I have same problem w/ Diversion GUI page.
 
You can see what other files are open on the drive with this command:
Code:
/usr/bin/lsof | /bin/grep "/tmp/mnt/Samsung_T5"
Sorry for taking so long to answer.
I have a new router now, fresh install of everything and the same issue still:

"If I enable dnsmasq logging in diversion, I am unable to properly unmount my external ssd, the log is spammed with:
ejusb: USB partition unmounted from /tmp/mnt/SamsungT5 fail. (return -1, Device or resource busy)"

Maybe I am one of the few that tries to unmount my usb device before i reboot (if possible)?

anyways, output of lsof:
/usr/bin/lsof | /bin/grep "SamsungT5"
28147 /usr/sbin/dnsmasq /tmp/mnt/SamsungT5/entware/var/log/dnsmasq.log
28550 /bin/busybox /tmp/mnt/SamsungT5/entware/var/log/dnsmasq.log
 
What is this process doing ? What else is installed?
Code:
ps ww | grep 28550
a few reboots further, so new ids

/usr/bin/lsof | /bin/grep "SamsungT5"
22032 /usr/sbin/dnsmasq /tmp/mnt/SamsungT5/entware/var/log/dnsmasq.log
22423 /bin/busybox /tmp/mnt/SamsungT5/entware/var/log/dnsmasq.log

ps ww | grep 22032
22032 nobody 57912 S dnsmasq --log-async

ps ww | grep 22423
22423 xxxxxx 3116 S N tail -F /opt/var/log/dnsmasq.log /opt/var/log/dnsmasq.log3

Running Diversion, uiDivStats, Skynet, Disk check script and LED control
 
The log-async option can also put a lot of load on the external drive as well. Try disabling that option in Diversion as it should be off by default, and there's no real gain in enabling it.
 
@dave14305 I installed Diversion to test. This log-async is used by Diversion but it's not being disabled when not used. Removing Diversion removes that entry and kills log-async.
 
@dave14305 I installed Diversion to test. This log-async is used by Diversion but it's not being disabled when not used. Removing Diversion removes that entry and kills log-async.
The firmware starts dnsmasq with the log-async option on the command line. I don’t know the history of it being an option in Diversion, but it isn’t needed there anymore. log-async is quite important actually to prevent dnsmasq from freezing if a log message can’t be written fast enough.

 
The firmware starts it? Yet, after a reboot (for me with Diversion removed) it's not running.
Maybe Diversion starts it even with that setting disabled (?).
Just trying to understand. We are talking wifi 7 models
.
Forget that, htop shows two instances still. Though neither of those are accessing the external drive.
 
Last edited:
Can you guys remove the usb safely from the UI without errors when you have dnsmasq logging on in diversion?
 
Yeah, lost the original point.
Just tried ejecting with Diversion running and the GUI locked up. The GUI (after a little wait) shows the drive is unmounted, but the drive is clearly still being accessed.
 
Yeah, lost the original point.
Just tried ejecting with Diversion running and the GUI locked up. The GUI (after a little wait) shows the drive is unmounted, but the drive is clearly still being accessed.
indeed, ui freezes for a while, then continues. Syslog shows the errors i mentioned
 
Diversion requires Entware. Eject the disc while Diversion is running WILL cause problems. Disabling Diversion doesn't help, things will still crash.
Removed Diversion and after a slight delay the drive unmounts cleanly.
Smoking gun anyone?
 
Last edited:
Diversion requires Entware. Eject the disc while Diversion is running WILL cause problems. Disabling Diversion doesn't help, things will still crash.
ok, so bottom line do not 'safely' remove usb in frontend, before restarting/shutdown?
 
ok, so bottom line do not 'safely' remove usb in frontend, before restarting/shutdown?
That's my advice, unless someone comes up with a little code to kill Diversion before the drive unmounts. Ahem!
 

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!
Back
Top