Diversion dnsmasq.log not resetting

jp3_99

New Around Here
So I have an issue I can't seem to figure out. In diversion when the blocking list updates it's supposed to reset the dnsmasq log file, and that is how it was working for awhile. But recently it's not, and the log is up to 115m.

I have tried to put sh /opt/share/diversion/file/update-bf.div reset in to putty, per another thread that said it should update the list and reset the log, but it just says sh: can't open '/opt/share/diversion/file/update-bf.div'

I'm extremely dumb when it comes to this stuff so I'm probably missing something, but anyone have any ideas on how to get it resetting the log normally again?
 

dave14305

Part of the Furniture
You should have a cru entry for rotate-logs.div.
Code:
# cru l
45 3 * * Fri sh /jffs/local/routerbackup.sh #routerbackup#
20 5 * * * sh /opt/share/diversion/file/rotate-logs.div #Diversion_RotateLogs#
 

thelonelycoder

Part of the Furniture
So I have an issue I can't seem to figure out. In diversion when the blocking list updates it's supposed to reset the dnsmasq log file, and that is how it was working for awhile. But recently it's not, and the log is up to 115m.

I have tried to put sh /opt/share/diversion/file/update-bf.div reset in to putty, per another thread that said it should update the list and reset the log, but it just says sh: can't open '/opt/share/diversion/file/update-bf.div'

I'm extremely dumb when it comes to this stuff so I'm probably missing something, but anyone have any ideas on how to get it resetting the log normally again?
In Diversion enter option 1233
Then run the blocking file update manually in b, 4.
Read what the oitput says.

Thereś also an option to reset the logfiles in d.
 

jp3_99

New Around Here
In Diversion enter option 1233
Then run the blocking file update manually in b, 4.
Read what the oitput says.

Thereś also an option to reset the logfiles in d.
Ok so I was able to get it reset with d option. But it's still not resetting automatically with the blocking list update. Here is the output from that.


Code:
 using temporary pgl.yoyo.org file to lower memory usage while updating
 remote file same: using local file
 https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext&useip=0.0.0.0
 writing temporary pgl.yoyo.org blocking list(s)

 preparing temporary whitelist
 preserving assembled hardcoded whitelist
 updated shared-Diversion-whitelist

 refreshing Skynet to whitelist domains in shared-Diversion-whitelist
 shared-Diversion-whitelist refreshed in Skynet
 including /jffs/addons/shared-whitelists/shared-Skynet-whitelist in Diversion
 including /jffs/addons/shared-whitelists/shared-Skynet2-whitelist in Diversion

 downloading Large blocking list, 1 file(s)
 using 192.168.50.2 as blocking IP

 processing file 1 of 1
 remote file same: using local file
 https://dbl.oisd.nl/
 file is in domains only format
 processing file 1 done

 removing whitelisted domains in blocking list, sorting file

 writing Large blocking list

 updated Large blocking list from 1 valid hosts file(s),
 996976 domains are now blocked by Diversion.
 

thelonelycoder

Part of the Furniture
Ok so I was able to get it reset with d option. But it's still not resetting automatically with the blocking list update. Here is the output from that.


Code:
 using temporary pgl.yoyo.org file to lower memory usage while updating
remote file same: using local file
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext&useip=0.0.0.0
writing temporary pgl.yoyo.org blocking list(s)

preparing temporary whitelist
preserving assembled hardcoded whitelist
updated shared-Diversion-whitelist

refreshing Skynet to whitelist domains in shared-Diversion-whitelist
shared-Diversion-whitelist refreshed in Skynet
including /jffs/addons/shared-whitelists/shared-Skynet-whitelist in Diversion
including /jffs/addons/shared-whitelists/shared-Skynet2-whitelist in Diversion

downloading Large blocking list, 1 file(s)
using 192.168.50.2 as blocking IP

processing file 1 of 1
remote file same: using local file
https://dbl.oisd.nl/
file is in domains only format
processing file 1 done

removing whitelisted domains in blocking list, sorting file

writing Large blocking list

updated Large blocking list from 1 valid hosts file(s),
996976 domains are now blocked by Diversion.
Itĺl do it next time when the scheduled update runs.
 

Latest threads

Sign Up For SNBForums Daily Digest

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