What's new

[Beta] Adblock WCHFA (Closed, use AB-Solution thread).

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

has anyone tested this with johns fork?
I am also interested if and how it works on that fork...
I am grateful for every feedback, please mention router model and firmware used.
 
Yes, it has installed anyway without error.
Router is AC87U with the latest 380.57.2_HGG-FINAL firmware with optware-ng . After the reboot is the same... I have placed the script in the /home/root directory, after the install I have removed the script.
Do you mind running this command for me and post the value (should be 0):
Code:
nvram get lan_dns_fwd_local
 
Ok.. So I have this installed, but how can I tell that it is working?
I tried a site like http://www.adblocktest.com/ and it shows that an ad-blocker is not working.
I turned on the dns logging but I don't see any blocking occurring there.

Thanks.
 
I assume this will detect partitions on a USB stick? How big a partition would you recommend for the install?
A typical install with the Extended hosts file (with some backups if you have a existing dnsmasq.postconf and services.start file) is about 12 MB.
If you select dnsmasq logging during setup the minimal requirement goes up considerably, depending how much traffic you have in your LAN.
The dnsmasq.log file rotates every week to dnsmasq.log.old and then gets overwritten next time around. So two weeks of logging is stored on it as well.
I'd say an old 256 MB Stick that you have laying around from the olden days is sufficient for most cases.
That is what I use on my test router, the AC66U. The main router has a 16 GB Stick in it but I run a lot of other things on it as well.
 
Ok.. So I have this installed, but how can I tell that it is working?
I tried a site like http://www.adblocktest.com/ and it shows that an ad-blocker is not working.
I turned on the dns logging but I don't see any blocking occurring there.

Thanks.
My friend: Click on the List of Adblockers link on that page. Is my super duper simple adblocker listed there?

It shows a red NOT WORKING with my perfectly working setup here...

Try a website you frequent that is riddled with ads.
The output of the dnsmasq.log file will show entries like these:
dnsmasq[19047]: /tmp/mnt/sda1/adblocking/hosts-adblock settings-win.data.microsoft.com is 0.0.0.0
dnsmasq[19047]: /tmp/mnt/sda1/adblocking/hosts-adblock spynet2.microsoft.com is 0.0.0.0
dnsmasq[19047]: /tmp/mnt/sda1/adblocking/hosts-adblock s2.symcb.com is 0.0.0.0

You may have to reboot your router. Also interesting would be your router model and firmware to further help. And if you have IPV6 enabled.
 
Then why I see ads all of my devices?
Do you use IPV6 or dnscrypt / vpn?
What is the DNS Server set to when you run ipconfig/all in a command prompt on your winbox (ifconfig on *nix)? It should point to your routers IP.
 
Do you use IPV6 or dnscrypt / vpn?
What is the DNS Server set to when you run ipconfig/all in a command prompt on your winbox (ifconfig on *nix)? It should point to your routers IP.
Also would you mind sending me your nvram settings file? It would help tremendously in finding the culprit and how to warn users during setup that some settings can cause AdBlocking not working.
If you run
Code:
nvram show | sort > /jffs/nvram.txt
And attach the file to a private message. Thanks
 
Also would you mind sending me your nvram settings file? It would help tremendously in finding the culprit and how to warn users during setup that some settings can cause AdBlocking not working.
If you run
Code:
nvram show | sort > /jffs/nvram.txt
And attach the file to a private message. Thanks
I can send you the TXT tomorrow morning.
 
My friend: Click on the List of Adblockers link on that page. Is my super duper simple adblocker listed there?

It shows a red NOT WORKING with my perfectly working setup here...

Try a website you frequent that is riddled with ads.
The output of the dnsmasq.log file will show entries like these:
dnsmasq[19047]: /tmp/mnt/sda1/adblocking/hosts-adblock settings-win.data.microsoft.com is 0.0.0.0
dnsmasq[19047]: /tmp/mnt/sda1/adblocking/hosts-adblock spynet2.microsoft.com is 0.0.0.0
dnsmasq[19047]: /tmp/mnt/sda1/adblocking/hosts-adblock s2.symcb.com is 0.0.0.0

You may have to reboot your router. Also interesting would be your router model and firmware to further help. And if you have IPV6 enabled.

Ok... So i have a little success..
admin@RT-AC66R-9108:/jffs/mnt/adblocking/logs# tail -f dnsmasq.log | grep 0.0.0.0
Jan 26 16:44:36 dnsmasq[15692]: /jffs/mnt/adblocking/hosts-adblock cdn.taboola.com is 0.0.0.0
Jan 26 16:44:36 dnsmasq[15692]: /jffs/mnt/adblocking/hosts-adblock www.googletagservices.com is 0.0.0.0
Jan 26 16:44:37 dnsmasq[15692]: /jffs/mnt/adblocking/hosts-adblock b.scorecardresearch.com is 0.0.0.0
Jan 26 16:44:37 dnsmasq[15692]: /jffs/mnt/adblocking/hosts-adblock googleads.g.doubleclick.net is 0.0.0.0

I tried a few sites, but that's all I got so far, so it may be a bit selective.

Thanks.
 
I am also interested if and how it works on that fork...
I am grateful for every feedback, please mention router model and firmware used.
i have it running on johns fork 16e1.
works ok on my ac68u and inlaws ac66u also running above version from john.
used extended version for the two models
 
An automatic uninstall is planned in one of the next beta releases.
For the time being (and if you had no other scripts installed on your router before running my setup script):
Remove the following files:
/jffs/scripts/services-start
/jffs/scripts/dnsmasq.postconf
And then reboot your router. This will effectively disable AdBlocking.
Then you can also remove the adblocking and adb-backup (may not exist) folders on your USB device.
Thanks for the explanation. I will try your script this evening.
Another quick question. Would WGET and put it in /tmp/home/root be oke with the file size? Or do you advise using a USB stick?
 
Thanks for the explanation. I will try your script this evening.
Another quick question. Would WGET and put it in /tmp/home/root be oke with the file size? Or do you advise using a USB stick?
You need an external device such as a USB-Stick to run this on.
Edit: Do you mean to wget the install script and run it from there?
Best method in my opinion! Go ahead.
 
You need an external device such as a USB-Stick to run this on.
Edit: Do you mean to wget the install script and run it from there?
Best method in my opinion! Go ahead.

Yes I meant WGET the install script and install it. Great.
So I not have to worry about free space?
 
Yes I meant WGET the install script and install it. Great.
So I not have to worry about free space?
Not at all, its only about 15 KB at the moment.
 

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