What's new

AB-Solution 1.0 release

  • 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!

I have exactly every hour this error in log.
"crond[750]: user admin: parse error at 7"
Before I had changed to max protection (that one ~ 300k sites) and an update.
Any idea about what it can be?
 
well, i appreciate the work! its just i give a little feedback for future enhancements. thats what this forum is all about btw.

Gesendet von meinem SM-N9005 mit Tapatalk
Thats OK, thanks.
Please release a rudimentary pixelserv version, thanks. It is really annoying when half of the mobile Browser screen is being used by a placeholder.

Gesendet von meinem SM-N9005 mit Tapatalk
You will have to wait until I release AB-Solution with "some sort of" pixelserv. There's no such thing as a rudimentary pixelserve solution. It's the real thing or nothing. Serving a pixel involves a webserver to serve the pixel. Thats a lot of work to implement into my script and involves a fair amount of testing. I believe it is well worth the wait.
 
I have exactly every hour this error in log.
"crond[750]: user admin: parse error at 7"
Before I had changed to max protection (that one ~ 300k sites) and an update.
Any idea about what it can be?
Run this in a terminal: cru l
(lower case L) and post the output.
 
Run this in a terminal: cru l
(lower case L) and post the output.

admin@RT-AC87U-FCB8:/tmp/home/root# cru l
00 02 * * 7 /tmp/mnt/ASUS/adblocking/update-hosts.sh #UpdateHosts#

Also before having the error I restarted the router and I saw that the file "ab-solution.sh" has disappeared. I used again the link from first post for installing the ab-solution.
 
Last edited:
admin@RT-AC87U-FCB8:/tmp/home/root# cru l
00 02 * * 7 /tmp/mnt/ASUS/adblocking/update-hosts.sh #UpdateHosts#

Also before having the error I restarted the router and I saw that the file "ab-solution.sh" has disappeared. I used again the link from first post for installing the ab-solution.
The 7 is supposed to be the day the update runs. Sunday is a 0 or a 7, and for some reason the chron is not parsing the 7. If you change that line in the script from 7 to 0, it will work. See TLC's post #97 in this thread.

Also, AB-Solution picks the day of the week that it is installed for the update job. If you want another day, then you can substitute 0 through 6 in place of the 7 for your choice of Sunday through Saturday.
 
Last edited:
admin@RT-AC87U-FCB8:/tmp/home/root# cru l
00 02 * * 7 /tmp/mnt/ASUS/adblocking/update-hosts.sh #UpdateHosts#
Change this line in /jffs/scripts/services-start from
cru a UpdateHosts "00 02 * * 7 /tmp/mnt/ASUS/adblocking/update-hosts.sh"
to
Code:
cru a UpdateHosts "00 02 * * 0 /tmp/mnt/ASUS/adblocking/update-hosts.sh"
And reboot the router. It will be fine after that, as long as you don't change the hosts file type.
AB-Solution 1.1 will have a work-around for Sunday scheduled updates.
Also before having the error I restarted the router and I saw that the file "ab-solution.sh" has disappeared. I used again the link from first post for installing the ab-solution.
If you downloaded ab-solution.sh with wget it most likely will be stored in the /home/root/ directory on your router. This is a volatile directory and gets wiped and created new at every boot up.
AB-Solution 1.1 will have a helpful add-on to move ab-solution.sh to the USB device and place a link to it to /home/root/ if you select that option.
 
AB-Solution 1.0 runs flawlessly with Ausuwrt-Merlin 380.58_beta1
 
Maybe it will be an idea to have this solution integrated in FW with that menu options in GUI.
This will avoid usage of FTP or putty by not so advanced users (just for consumers).
Adds are a pain for all but not all consumers will be able to use your this very useful solution.
Probably 80-90% of users are GUI users (including me :) ).
 
Maybe it will be an idea to have this solution integrated in FW with that menu options in GUI.
This will avoid usage of FTP or putty by not so advanced users (just for consumers).
Adds are a pain for all but not all consumers will be able to use your this very useful solution.
Probably 80-90% of users are GUI users (including me :) ).
You probably don't realize what amount of work this would involve to maintain an integrated Firmware GUI Version of AB-Solution.

But first: @RMerlin will NOT include an Ad-Blocker in his firmware. His reasons are well known and make sense, search the forum for details.

I will not create a fork of Asuswrt-Merlin that includes AB-Solution. The sheer amount of work to make and maintain these for all Merlin supported models is way beyond the time I am willing to spend on this.

What you also don't seem to realize is that AB-Solution IS my answer to allow "layman's" to setup ad-blocking on ASUS routers without much knowledge of the workings behind the scene.
So, what else do you want from me?
 
TLC:

There is something hinky in the timestamps in the logging. See this as part of a boot sequence shortly after the NTP sync resets the clock to 21:07:19:

Code:
Mar 16 21:07:29 dnsmasq[774]: read /etc/hosts.dnsmasq - 21 addresses
Mar 16 21:07:29 dnsmasq-dhcp[774]: read /etc/ethers - 21 addresses
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.2#53 for domain tampabay.rr.com
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.1#53 for domain tampabay.rr.com
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.1#53
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.2#53
Mar 16 21:07:29 disk_monitor: Finish
Mar 16 21:07:29 disk monitor: be idle
Mar 16 20:07:29 FTP Server: daemon is stopped
Mar 16 20:07:29 Samba Server: smb daemon is stopped
Mar 16 21:07:29 mountd[930]: Caught signal 15, un-registering and exiting.
Mar 16 21:07:29 statd[909]: Caught signal 15, un-registering and exiting.
Mar 16 21:07:29 kernel: nfsd: last server has exited
Mar 16 21:07:29 kernel: nfsd: unexporting all filesystems
Mar 16 21:07:30 rc_service: service 1115:notify_rc restart_dnsmasq
Mar 16 21:07:30 rc_service: waitting "restart_nasapps" via hotplug ...
Mar 16 20:07:30 Samba Server: daemon is started
Mar 16 21:07:30 statd[1129]: Version 1.1.6 Starting
Mar 16 21:07:30 statd[1129]: statd running as root. chown /var/lib/nfs/sm to choose different user
Mar 16 21:07:32 dnsmasq[774]: exiting on receipt of SIGTERM
Mar 16 20:07:32 custom config: Appending content of /jffs/configs/dnsmasq.conf.add.
Mar 16 20:07:32 custom script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)
Mar 16 21:07:32 elorimer: AB-Solution: services-start has restarted dnsmasq
Mar 16 21:07:32 elorimer: AB-Solution added entries via dnsmasq.postconf
Mar 16 21:07:35 hour monitor: daemon is starting

The time stamps are all 21:07, except that the FTP Server and the Samba Server message exactly an hour earlier in two places, and then the custom config and custom script entries the same. Perhaps a daylight savings time thing? Are there two clocks?

N66U with 58 beta 1, otherwise performing normally.
 
TLC:

There is something hinky in the timestamps in the logging. See this as part of a boot sequence shortly after the NTP sync resets the clock to 21:07:19:

Code:
Mar 16 21:07:29 dnsmasq[774]: read /etc/hosts.dnsmasq - 21 addresses
Mar 16 21:07:29 dnsmasq-dhcp[774]: read /etc/ethers - 21 addresses
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.2#53 for domain tampabay.rr.com
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.1#53 for domain tampabay.rr.com
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.1#53
Mar 16 21:07:29 dnsmasq[774]: using nameserver 75.114.81.2#53
Mar 16 21:07:29 disk_monitor: Finish
Mar 16 21:07:29 disk monitor: be idle
Mar 16 20:07:29 FTP Server: daemon is stopped
Mar 16 20:07:29 Samba Server: smb daemon is stopped
Mar 16 21:07:29 mountd[930]: Caught signal 15, un-registering and exiting.
Mar 16 21:07:29 statd[909]: Caught signal 15, un-registering and exiting.
Mar 16 21:07:29 kernel: nfsd: last server has exited
Mar 16 21:07:29 kernel: nfsd: unexporting all filesystems
Mar 16 21:07:30 rc_service: service 1115:notify_rc restart_dnsmasq
Mar 16 21:07:30 rc_service: waitting "restart_nasapps" via hotplug ...
Mar 16 20:07:30 Samba Server: daemon is started
Mar 16 21:07:30 statd[1129]: Version 1.1.6 Starting
Mar 16 21:07:30 statd[1129]: statd running as root. chown /var/lib/nfs/sm to choose different user
Mar 16 21:07:32 dnsmasq[774]: exiting on receipt of SIGTERM
Mar 16 20:07:32 custom config: Appending content of /jffs/configs/dnsmasq.conf.add.
Mar 16 20:07:32 custom script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)
Mar 16 21:07:32 elorimer: AB-Solution: services-start has restarted dnsmasq
Mar 16 21:07:32 elorimer: AB-Solution added entries via dnsmasq.postconf
Mar 16 21:07:35 hour monitor: daemon is starting

The time stamps are all 21:07, except that the FTP Server and the Samba Server message exactly an hour earlier in two places, and then the custom config and custom script entries the same. Perhaps a daylight savings time thing? Are there two clocks?

N66U with 58 beta 1, otherwise performing normally.
custom config: Those are calls made by the system, and I seem to remember they are not run in a particular order. So it could be they were scheduled to be executed at that time-stamp's time but delayed by other calls. Then daylight savings time kicked in.
But really, I have no explanation for that and it is not in the least worrying.
 
dump question :p

anyone succeeded in blocking youtube ads ? is there is a spacific url to blacklist ?
 
A teaser of what's coming in AB-Solution 1.1.
Don't ask for a release date though, the past two weeks were extremely hectic for me.

CJR0PXd.png
 
Last edited:
Will adblock solution work in conjunction with transparent squid 3.5? Sorry for the noobie question. I just don't want to mess up, and better to ask than take a risk approach.
 
Will adblock solution work in conjunction with transparent squid 3.5? Sorry for the noobie question. I just don't want to mess up, and better to ask than take a risk approach.
Not sure. You could test it though.
 
mine doesn't . unless i did something wrong and missed it up :(

just to clarify what youtube ads I was talking about , I mean the 5/15 seconds that play before the actual youtube video.
 

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