What's new

Diversion - how to check if running or active

kstamand

Regular Contributor
I'm putting together a script to verify a list of "things" are running as expected on my router. I've checked ps | grep diversion and nvram show anything diversion related.

Is there a hidden diversion command or other command I can use to verify it's enabled and/or running (I checked FAQ and searched, but no luck)?
 
Can't you just check the dnsmasq.conf file to see if the Diversion lines are appended? The lines are only added if ad blocking mode is enabled within Diversion
 
Can't you just check the dnsmasq.conf file to see if the Diversion lines are appended? The lines are only added if ad blocking mode is enabled within Diversion
I was thinking about checking diversion.conf for DIVERSION_STATUS setting, or possibly one of the other files (e.g., dnsmasq.postconf, dnsmasq.log). Before going that route, I figured I'd check to see if there might be another way

Thanks for the response, much appreciated
 
If you go with my solution, you may want to also check that a dnsmasq process is also running (in addition to the Diversion lines being at the tail end inside the /etc/dnsmasq.conf file)
 

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