Issue
Squid stopped working
Hello,
My internet was slow and i'd a message "High swap memory usage ($swap_usage%)" in webconfig.
After searching i've found out that webproxy (squid) has stopped.
Tried to start it i webconfig, but this failed.
in Putty i see the following error when i try to start squid
i've removed in squid.conf line 1 "http_access allow webconfig_lan" and squid is working again.
Webconfig is still very slow
The question is where is this coming from and do i need this line and what is the purpose ?
My internet was slow and i'd a message "High swap memory usage ($swap_usage%)" in webconfig.
After searching i've found out that webproxy (squid) has stopped.
Tried to start it i webconfig, but this failed.
in Putty i see the following error when i try to start squid
Feb 08 20:42:47 xxxxxxxx.nl squid[10447]: 2018/02/08 20:42:47| ACL not found: webconfig_lan
Feb 08 20:42:47 xxxxxxxx.nl squid[10447]: Bungled /etc/squid/squid.conf line 1: http_access allow webconfig_lan
Feb 08 20:42:47 xxxxxxxx.nl squid[10447]: FATAL: Bungled /etc/squid/squid.conf line 1: http_access allow webconfig_lan
Feb 08 20:42:47 xxxxxxxx.nl squid[10447]: Squid Cache (Version 3.5.20): Terminated abnormally.
Feb 08 20:42:47 xxxxxxxx.nl squid[10447]: CPU Usage: 0.009 seconds = 0.006 user + 0.004 sys
Feb 08 20:42:47 xxxxxxxx.nl squid[10447]: Maximum Resident Size: 28704 KB
Feb 08 20:42:47 xxxxxxxx.nl squid[10447]: Page faults with physical i/o: 0
Feb 08 20:42:47 xxxxxxxx.nl systemd[1]: squid.service: control process exited, code=exited status=1
Feb 08 20:42:47 xxxxxxxx.nl systemd[1]: Failed to start Squid caching proxy.
i've removed in squid.conf line 1 "http_access allow webconfig_lan" and squid is working again.
Webconfig is still very slow
The question is where is this coming from and do i need this line and what is the purpose ?
Share this post:
Responses (5)
-
Accepted Answer
Nick Howitt wrote:
So squid.conf should have a line:
Perhaps it is missing if it is a v6 restore into v7 as I think the file structure changed.include /etc/squid/squid_lans.conf
This is indeed missing.
I checked with a test setup on VM, and the config looks completly different and more lines are missing.
Strange because it was a fresh v7 install.
I copied the VM .conf to the production server and squid is running.
Will test it further -
Accepted Answer
-
Accepted Answer
Nick Howitt wrote:
You should have a file, /etc/squid/squid_lans.conf, something like this:
This allows traffic into and out of the LAN, I think.# Created automatically based on network configuration
acl webconfig_lan src 172.22.22.0/24
acl webconfig_to_lan dst 172.22.22.0/24
Yep. This is available
# Created automatically based on network configuration
acl webconfig_lan src 192.168.1.0/24
acl webconfig_to_lan dst 192.168.1.0/24
-
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »