Squid proxy connection refused firefox

Discussion in 'Server Operation' started by teros, Mar 26, 2011.

  1. teros

    teros New Member


    I've tried the suggestions on both google and on this forum i can't seem to get Squid to allow external connections...Apologies this is on a headless Mybook world.

    my lan information
    current ip addressing 192.168.0.x
    Squid box ip
    Router Ip

    Have tried playing with http_access flags without any luck any assistance is more than appreciated. apologies has been many many years since i setup a proxy

    if any one could help would be much apperciated.

    Using the below.
    acl our_networks src
    http_access allow our_networks

    #Recommended minimum configuration:
    acl all src
    acl manager proto cache_object
    acl localhost src
    acl to_localhost dst
    acl our_networks src

    This is basically going to be a home squid cache....
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    netstat -tap

    Do you try to connect on port 3128?
  3. teros

    teros New Member

    Hey mate,

    Yep i verified what i think the issue is...

    When looking and playing around i found that if i use default config cache of /opt/var/squid/cache Squid works accepting connections etc. but i am trying to change it to /shares/Public/WWW/Squid/cache i get connections refused.

    I've started /opt/bin/squid -z to create the required swap directory's in /shares/Public/Squid/cache
    Run chmod -R 770 /shares/Public - to set full read write across whole directory
    chown nobody:nobody /shares/Public -have also tried setting the permissions as root as described in forum posts.

    Is weird the error above i've checked the permissions on both see below

    drwxr-xr-x 18 nobody nobody 4096 Mar 26 18:58 cache

    dirs inside cache
    drwxr-x--- 258 nobody jewab 4096 Mar 26 18:24 00

    drwxrwx--- 18 nobody jewab 4096 Mar 26 19:16 cache

    In the cache.log i can still see the following

    /shares/Public/WWW/Squid/cache/swap.state: (13) Permission
    FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
  4. falko

    falko Super Moderator ISPConfig Developer

    Can you make sure that all directories in the path to /shares/Public/WWW/Squid/cache also have the correct permissions? It's enough if there is one directory in the path where nobody has no read permssions...

Share This Page