Forums

Resolved
0 votes
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

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 ?
Thursday, February 08 2018, 07:51 PM
Share this post:
Responses (5)
  • Accepted Answer

    Wednesday, July 31 2019, 09:55 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    So squid.conf should have a line:
    include /etc/squid/squid_lans.conf
    Perhaps it is missing if it is a v6 restore into v7 as I think the file structure changed.

    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
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 31 2019, 08:05 PM - #Permalink
    Resolved
    0 votes
    So squid.conf should have a line:
    include /etc/squid/squid_lans.conf
    Perhaps it is missing if it is a v6 restore into v7 as I think the file structure changed.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 31 2019, 07:46 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    You should have a file, /etc/squid/squid_lans.conf, something like this:
    # 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
    This allows traffic into and out of the LAN, I think.


    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
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 31 2019, 07:32 PM - #Permalink
    Resolved
    0 votes
    You should have a file, /etc/squid/squid_lans.conf, something like this:
    # 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
    This allows traffic into and out of the LAN, I think.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 31 2019, 04:48 PM - #Permalink
    Resolved
    0 votes
    When i change a setting in webconfig which changes the squid config, this breaks squid.
    Somehow it is adding the line http_access allow webconfig_lan in squid.conf.
    Probably this is needed, but i do not know why or what the purpose is.
    The reply is currently minimized Show
Your Reply