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!

I am not quite clear: are you still suggesting I replace the parameter "ulimit -s 2048" with "ulimit -n 2048"?
It's just speculation on my part as I don't use privoxy.

I would suggest that to start with you add "max-client-connections 256" to the config file and add "ulimit -n 2048" to the startup script. Try it with and without "ulimit -s 2048". See if you think it makes a difference.

When you get the problem it might be worth logging onto the router and issuing the following 2 commands. You might get lucky and it could highlight a problem with memory or number of processes.
Code:
# ps w
# free

PS The reason I chose "max-client-connections 256" and "ulimit -n 2048" is because that is double the default values (at least on my N66U - might be different for you).
 
Last edited:
OK, so here are my updated files:

config file (S24privoxy)
Code:
#!/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
max-client-connections 256

. /opt/etc/init.d/rc.func


and
/jffs/scripts/services-start (did I pick the correct one?)
Code:
#!/bin/sh

sleep 10
/opt/etc/init.d/rc.unslung start
ulimit -n 2048
 
No, I think that's wrong.

Put "ulimit -n 2048" in S24privoxy (the privoxy start script) after the other ulimit command.
Put "max-client-connections 256" in the config file. Sorry, I don't know the name of that file. Is it /opt/etc/privoxy/config ?
 
Last edited:
Thank you for staying with me here, Colin!

My S24privoxy now:
Code:
#!/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



I found a "config" file under ..../entware.arm/etc/privoxy/
and added the "max client..":
Code:
confdir /opt/etc/privoxy
logdir /opt/var/log
filterfile default.filter
logfile privoxy
actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
actionsfile default.action   # Main actions file
actionsfile easylistgermany.script.action
actionsfile easylist.script.action
actionsfile user.action
filterfile easylistgermany.script.filter
filterfile easylist.script.filter
filterfile user.filter
listen-address  0.0.0.0:3128
toggle  1
enable-remote-toggle  1
enable-remote-http-toggle  0
enable-edit-actions 1
enforce-blocks 0
buffer-limit 4096
forwarded-connect-retries  0
accept-intercepted-requests 1
allow-cgi-request-crunching 0
split-large-forms 0
keep-alive-timeout 300
socket-timeout 300
max-client-connections 256
#permit-access  192.168.1.0/24
debug   1    # show each GET/POST/CONNECT request
debug   4096 # Startup banner and warnings
debug   8192 # Errors - *we highly recommended enabling this*
#admin-address privoxy-admin@example.com
#proxy-info-url http://www.example.com/proxy-service.html

rebooting the router and keeping fingers crossed......
 
Could someone only post privoxy files for R7000 please ? I want to try it on Tomato but don't want to install all the entware stuff. Thank you.
 
Thank you for staying with me here, Colin!

My S24privoxy now:
Code:
#!/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



I found a "config" file under ..../entware.arm/etc/privoxy/
and added the "max client..":
Code:
confdir /opt/etc/privoxy
logdir /opt/var/log
filterfile default.filter
logfile privoxy
actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
actionsfile default.action   # Main actions file
actionsfile easylistgermany.script.action
actionsfile easylist.script.action
actionsfile user.action
filterfile easylistgermany.script.filter
filterfile easylist.script.filter
filterfile user.filter
listen-address  0.0.0.0:3128
toggle  1
enable-remote-toggle  1
enable-remote-http-toggle  0
enable-edit-actions 1
enforce-blocks 0
buffer-limit 4096
forwarded-connect-retries  0
accept-intercepted-requests 1
allow-cgi-request-crunching 0
split-large-forms 0
keep-alive-timeout 300
socket-timeout 300
max-client-connections 256
#permit-access  192.168.1.0/24
debug   1    # show each GET/POST/CONNECT request
debug   4096 # Startup banner and warnings
debug   8192 # Errors - *we highly recommended enabling this*
#admin-address privoxy-admin@example.com
#proxy-info-url http://www.example.com/proxy-service.html

rebooting the router and keeping fingers crossed......
Did it work ?
 
Thanks! This ad block serves gadgets well.

A perfect application to take away some idle cycles from my rt-ac56u.
 
I have followed the installation and configuration steps on my RT-AC66U / Merlin 378.54_2 and run into the "2aab0000 Error: Unable to take any additional connections: Resource temporarily unavailable" problem. I have configured the iptables only for one android phone and this error starts about 5 minutes into browsing. The mobile browser also stops connecting after the error starts.

I have tried all the options mentioned in this thread and have not been able to fix the problem. Is there any suggestion on how to get this problem fixed.

Once fixed I wanted to try enabling the filter for my entire home network with about 10 devices and see how it performs.
 
Hi Folks,

Since the last update 378.53/54 privoxy and DNScrypt doesn't start automatically. I'm forced to connect to the routeur to restart the 2 services. Anyone else with this issue?
 
Hi Folks,

Since the last update 378.53/54 privoxy and DNScrypt doesn't start automatically. I'm forced to connect to the routeur to restart the 2 services. Anyone else with this issue?

The System Log is your best friend. Have a look at it, it probably reports something to the effect that the router was asked to run a script, but you have custom scripts disabled. If that's the case, enable them under Administration -> System.
 

Sign Up For SNBForums Daily Digest

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