Proposed changes to squid package: url_rewrite_children value
-
Once squidGuard is enabled it passes the following settings to squid package:
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf;url_rewrite_bypass off;url_rewrite_children 16 startup=8 idle=4 concurrency=0
The problem is its not suitable for medium/large networks (more than 50ish users)
Of course that could be adjusted manually under Squid–>General-->Advanced Features--->Integrations, if you know what to do and where to find it.
Also, after squid / SquidGuard reinstall or SquidGuard configurations changes, your manual changes are overwritten.I suggest to add few fields in squidGuard GUI:
-
Maximum URL rewrite children
-
Startup URL rewrite children
-
Idle URL rewrite children
-
maybe Concurrency I don't really know what effect it makes and if what kind of setup needs changing that value.
So those values will be passed accordingly to squid.conf instead of defaults 16/8/4/0 accordingly.
My setup:
url_rewrite_children 200 startup=20 idle=20 concurrency=0
On rough average I have 60 squidGuard processes running for 1500 users. -
-
As stated on another thread - pull requests go to GitHub. After you've read the wonderful code, I think you'll quickly understand why noone's maintaining the package, let alone adding features to it.
Note: In case you decide to code something there – that SquidGuard heap of mess directly touching any code in the Squid package is absolutely not desired... Keep that thing 1/4 of statute mile away from Squid code.
-
As stated on another thread - pull requests go to GitHub. After you've read the wonderful code, I think you'll quickly understand why noone's maintaining the package, let alone adding features to it.
Note: In case you decide to code something there – that SquidGuard heap of mess directly touching any code in the Squid package is absolutely not desired... Keep that thing 1/4 of statute mile away from Squid code.
Well, with all 4 changes proposed today, I can only say that before they will be implemented I'd have to keep customized copy of squid.conf file and copy it over every time when pfsense decides to overwrite it (when squid or squidGuard package changes/saves/refresh its configuration).
And anybody who has more than one 24bit subnet address space or/and more than 100 concurrent users will face same issue with pfSense, once Traffic Mgmt/SquidGuard features are required to be utilized.
Just saying.. :)
-
Yeah, looks like that. There are bugs in the SquidGuard code rotting for years (see https://redmine.pfsense.org/projects/pfsense-packages/issues) – simply because noone can keep reading the code for more than a couple of minutes before developing a severe headache. The changes suggested here are a blatant waste of resources for most users, and adding options to the mess is not viable.