thelonelycoder
Part of the Furniture
Well, then don't tell them, some secrets are best kept to yourself...Enough horror stories for one day ...Now you are scaring the children!
Well, then don't tell them, some secrets are best kept to yourself...Enough horror stories for one day ...Now you are scaring the children!
As @tomsk writes: More info is needed to find the cause of this.AB-Solution stops working each time it does its automatic weekly update. I have to manually update it or reboot my RT-AC87U router to get it working again. The router is running merlinwrt v380.63_2.
Any idea what's causing this or how I can disable auto-updates as a workaround?
Do as I said before you do anything, I need to know.As it happens, yep I've set it to Sunday. I'll try changing it and let you all know if it works.
The syslog is empty since I just rebooted the router to get ABS working again. I'll keep it in mind for next time.
tlc@RT-AC1900P-CA08:/tmp/home/root# cru l
00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts#
20 5 * * * /tmp/mnt/absolution/adblocking/addon/rotate-logs.add #RotateLogs#
tlc@RT-AC1900P-CA08:/tmp/home/root# cru d RotateLogs
tlc@RT-AC1900P-CA08:/tmp/home/root# cru l
00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts#
tlc@RT-AC1900P-CA08:/tmp/home/root# cru a RotateLogs "*/2 * * * 0 /tmp/mnt/absolution/adblocking/addon/rotate-logs.add"
tlc@RT-AC1900P-CA08:/tmp/home/root# cru l
00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts#
*/2 * * * 0 /tmp/mnt/absolution/adblocking/addon/rotate-logs.add #RotateLogs#
tlc@RT-AC1900P-CA08:/tmp/home/root# cru l
00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts#
20 5 * * * /tmp/mnt/absolution/adblock
That really is odd.... is not even the full original job but a truncated version of it.There is something fishy going on with cron jobs, at least on my 380.64 beta routers, have to fire up another router that is not on the latest fw test it.
Cron entries get overwritten by older entries for some reason when they are run:
- First cru l shows two jobs, with RotateLogs running at 20 past 5 in the morning every day.Code:tlc@RT-AC1900P-CA08:/tmp/home/root# cru l 00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts# 20 5 * * * /tmp/mnt/absolution/adblocking/addon/rotate-logs.add #RotateLogs# tlc@RT-AC1900P-CA08:/tmp/home/root# cru d RotateLogs tlc@RT-AC1900P-CA08:/tmp/home/root# cru l 00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts# tlc@RT-AC1900P-CA08:/tmp/home/root# cru a RotateLogs "*/2 * * * 0 /tmp/mnt/absolution/adblocking/addon/rotate-logs.add" tlc@RT-AC1900P-CA08:/tmp/home/root# cru l 00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts# */2 * * * 0 /tmp/mnt/absolution/adblocking/addon/rotate-logs.add #RotateLogs# tlc@RT-AC1900P-CA08:/tmp/home/root# cru l 00 5 * * 0 /tmp/mnt/absolution/adblocking/addon/update-hosts.add cronjob #UpdateHosts# 20 5 * * * /tmp/mnt/absolution/adblock
- I delete the job (cru d RotateLogs)
- Job is deleted, only one job is listed
- I manually add the job to run every two minutes on Sundays
- Job is listed correctly (*/2 * * * 0)
- After job is run by cron, the old entry is established (20 5 * * *)
Something for @RMerlin to ponder? The crontabs file reflects that change.
Dec 6 01:30:02 RT-AC68U-4690 tOmsK: AB-Solution blocked 153'942 total 22'142 week 1'414 new ads
Dec 6 01:32:18 RT-AC68U-4690 tOmsK: AB-Solution compiled stats
Dec 6 02:01:26 RT-AC68U-4690 tOmsK: AB-Solution updated hosts file, 214569 Domains are now blocked
Dec 6 02:01:29 RT-AC68U-4690 rc_service: service 11894:notify_rc restart_dnsmasq
Dec 6 02:01:29 RT-AC68U-4690 script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)
Dec 6 02:01:30 RT-AC68U-4690 tOmsK: AB-Solution added entries via ab_dnsmasq_postconf.sh
Dec 6 02:01:30 RT-AC68U-4690 tOmsK: AB-Solution linked dnsmasq.postconf to ab_dnsmasq_postconf.sh
Dec 6 02:01:37 RT-AC68U-4690 tOmsK: AB-Solution rotated dnsmasq log files
Dec 6 02:01:39 RT-AC68U-4690 rc_service: service 11953:notify_rc restart_dnsmasq
Dec 6 02:01:40 RT-AC68U-4690 script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)
Dec 6 02:01:41 RT-AC68U-4690 tOmsK: AB-Solution added entries via ab_dnsmasq_postconf.sh
Dec 6 02:01:41 RT-AC68U-4690 tOmsK: AB-Solution linked dnsmasq.postconf to ab_dnsmasq_postconf.sh
Just an FYI.....I now add the export TZ automatically when starting a shell in my fork.....I'm thinking now that it may have something to do with the 'export TZ=$(cat /etc/TZ)' I add in the S80pixelserv-tls file.
Thats for the logging only or for crontab as well?Just an FYI.....I now add the export TZ automatically when starting a shell in my fork.....
But this, like other solutions whitelists the domain, but doesn't necessarily whitelist the ad-providers - and here it does become a challenge, as one might whitelist providers that support SNB sites, but that would open up things for those ad providers on other sites.
People have different reasons for implementing an ad-blocking kind of solution - for some it's privacy, for others, it's a security aspect, and some have bandwidth caps that unwanted content blocked is bandwidth saved...
Yes i saw that in your changelog ... but afaik the Merlin main fork hasn't done thatJust an FYI.....I now add the export TZ automatically when starting a shell in my fork.....
But the discussion we are having here is for white-listing. Serving Ads from the same domain may still work with the major browser based ad-blockers, provided the relative path to the ads on that server does not change.
White-listing does work that way. But on a hosts based blocker there are only two ways: Accept the ads or block the domain and go look for content elsewhere (for the hardcore user).
That may very well work on your BHR, but I doubt privoxy or any other software can do that on a consumer router.One of the more clever solutions intercept the ad mid-stream by rendering the entire session in memory, replacing the ad uri's with another, returning the right result codes to the ad provider, using an anonymized UUID as needed - basically the solution deconstructs the page to the various info elements and rebuilds on the fly to the end user - so clickthrus still work, impressions still work, and just about every ad blocker is defeated - both javascript browser based as well as host driven via dns..
the advantage here is that whitelist/blacklist can occur in the event of malware, etc pretty much on the fly.
solutions like this are already out there...
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!