What's new

[How-to] Adblock Plus filters right on router

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

Not sure whether the below changes will work for you....
(as they are currently in my working privoxy configuration...
just a suggestion, you can always revert back if it does not work)

my S24privoxy start file looks like below
#!/bin/sh

ENABLED=yes
PROCS=privoxy
ARGS="/opt/etc/privoxy/config"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

ulimit -s 2048
ulimit -n 2048
. /opt/etc/init.d/rc.func


you can try running the S24privoxy from shell and see if things work out for you

and few configuration suggestions for the /opt/etc/privoxy/config file

enable-compression 1 -> change to 0
compression-level 6
enforce-blocks 1 -> change to 0

keep-alive-timeout 200 -> change to 300
socket-timeout 200 -> change to 300

Hi spalife,

Thanks for your answer. I tried to change a bit the config as suggested but still the same issue. I guess something is wrong with this version of privoxy.

Regards,
 
You seem to run out of file descriptors on your system.

Well, if nothing else works,
try the old method....
Remove privoxy & Reinstall and see how it goes...

I have seen forum posts of other user who had issues with dnscrypt-proxy
and removing and reinstalling seems to work out for him.
 
I'm just about to attempt to install Entware and then setup the router ( RT-N66U ) to block ads. I was wondering how much space I will require on the USB flashdrive, and I can't seem to find any mention of it?
 
I'm just about to attempt to install Entware and then setup the router ( RT-N66U ) to block ads. I was wondering how much space I will require on the USB flashdrive, and I can't seem to find any mention of it?

I have 136 packages from Entware installed. My Entware partition (program + data) at the moment uses only ~1GB. You'll be fine with a USB stick with 2GB or above.

I think people now can only install Entware-ng, which I haven't tried. Believe disk requirement shall be similar.

EDIT: count installed Entware packages
Code:
/jffs$ opkg list-installed | wc -l
136
 
Last edited:
I have 136 packages from Entware installed. My Entware partition (program + data) at the moment uses only ~1GB. You'll be fine with a USB stick with 2GB or above.

I think people now can only install Entware-ng, which I haven't tried. Believe disk requirement shall be similar.

EDIT: count installed Entware packages
Code:
/jffs$ opkg list-installed | wc -l
136

Thank you, much appreciated!
 
You also could always use Norton Secure DNS.

Sent from my SM-G920T using Tapatalk


Will that block Youtube ads on, for e.g, my Chromecast? I'm also a financially embarrassed student at the moment, so it would need to be free.

If so, could you possibly share a link?
 
I have run into a small problem while setting up adblocking. I have Entware installed, but I am not sure how to access the downloaded script file, so I can edit it to include the adblock plus subscriptions I want to use. Can anybody help?

Thanks and sorry for not having a clue :p

Edit: Nope, I've done that. Now I am getting an error when I try to run the script..

Command '"./privoxy-blocklist_0.2.sh"'
failed with return code 1 and error message
The command /opt/bin/wget can't be found. Please install the package providing /opt/bin/wget and run ./privoxy-blocklist_0.2.sh again. Exit.

I'm afraid I have no idea how to do that.
 
Last edited:
You can also Google around to find other DNS provider that block ads and such. Most are free.

Sent from my SM-G920T using Tapatalk
 
Thanks for your help! I've just tried the Norton DNS, and ads are still shown on the Chromecast. I'll keep Googling :D
 
Thanks for your help! I've just tried the Norton DNS, and ads are still shown on the Chromecast. I'll keep Googling :D
I'm pretty sure Chromecast hard codes it's DNS servers (and my not work if you try and change them).

But to try, your would have to set the alternate DNS servers for the Chromecast nder DNS Filter in Parental Controls.
 
I'm pretty sure Chromecast hard codes it's DNS servers (and my not work if you try and change them).

But to try, your would have to set the alternate DNS servers for the Chromecast nder DNS Filter in Parental Controls.

DNSFilter would allow to bypass hardcoded DNS servers.
 
Thanks for your help! I've just tried the Norton DNS, and ads are still shown on the Chromecast. I'll keep Googling :D

Norton DNS is not for ads filtering, it's for malware filtering and parental control.
 
Are there any DNS servers that I can use to block the Youtube video ads on my Chromecast? If not, perhaps another method? I can't seem to get the adblocking working with Entware, as I said earlier in the thread.

When I use the DNS filtering to direct Chromecast DNS requests to OpenDNS servers it seems to stop the longer 15 second ads ( at least for the last 40 minutes or so ) but I do still get the occasional 3 to 5 second ad. It would be great to get rid of them all.

Thanks for all your help so far guys.
 
curious if this adblock method is working for ipv6 and all youtube adds with this method, i have an adblocker on my ubiquiti edgerouter but i cant get all youtbe ads gone!! i have it working on my pc with adblock but not on iphones
 
curious if this adblock method is working for ipv6 and all youtube adds with this method, i have an adblocker on my ubiquiti edgerouter but i cant get all youtbe ads gone!! i have it working on my pc with adblock but not on iphones

I'm afraid I can't help you there. I Can't get the script to run due to an error..

Command '"./privoxy-blocklist_0.2.sh"'
failed with return code 1 and error message
The command /opt/bin/wget can't be found. Please install the package providing /opt/bin/wget and run ./privoxy-blocklist_0.2.sh again. Exit.

Which I have no idea how to fix :(
 
curious if this adblock method is working for ipv6 and all youtube adds with this method, i have an adblocker on my ubiquiti edgerouter but i cant get all youtbe ads gone!! i have it working on my pc with adblock but not on iphones


This method will work ipv6 or otherwise as long as streaming / web data is not https.

If you are using a youtube app, more than likely it will be using https and most ads will not be filtered
 
Thanks spalife, I'll check the setup when I get home later. The odd thing is that the setup instructions use wget and they worked up until the point I got stuck.

Also, is there a way to block https ads like those on youtube on the Chromecast? I'll be happy to pay to get rid of them when I have the opportunity, but that facility is not available in the UK yet.
 
Similar threads

Similar threads

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