Results 1 to 7 of 7

Thread: Sqiud is blocking access to Webmin

  1. #1
    Join Date
    Mar 2008
    Beans
    14

    Sqiud is blocking access to Webmin

    Hey guys,

    I have set up a proxy server with a content filter. I am using Squid as the proxy, Dansguardian as the content filter.

    I have also set up Webmin so I can manage everything through my IE browser. When I have the proxy enabled I cannot get to webmin. I get the following error.

    Code:
    ERROR
    The requested URL could not be retrieved
    
    --------------------------------------------------------------------------------
    
    While trying to retrieve the URL: 10.10.10.248:10000 
    
    The following error was encountered: 
    
    Access Denied. 
    Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

    My problem is very similar to this post http://ubuntuforums.org/showthread.php?t=548768 but the guy never said how he solved it.

    My squid.conf looks like this.

    Code:
    acl our_networks src 10.10.10.0/24
    acl webmin url_regex "/etc/squid/webmin.acl"
    acl webmin_port port 10000
    http_access allow our_networks
    http_access allow localhost
    http_access allow webmin
    http_access allow CONNECT webmin_port our_networks
    This might look a bit all over the place as I have been doing some googling on it.

    I know that it isn't DansGuardian blocking it but it isn't even getting to that stage.

    Can someone point out where I have gorn wrong?

  2. #2
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Sqiud is blocking access to Webmin

    Yes, I have the same problem with Squid and DansGuardian. If you find a fix, I'll be using it too
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  3. #3
    Join Date
    Mar 2008
    Beans
    14

    Re: Sqiud is blocking access to Webmin

    Anyone?

  4. #4
    Join Date
    Mar 2008
    Beans
    14

    Re: Sqiud is blocking access to Webmin

    Right I have found a fix.

    In my sarg.conf I have the following rules (As stated in my first post)

    Code:
    acl our_networks src 10.10.10.0/24
    acl webmin url_regex "/etc/squid/webmin.acl"
    acl webmin_port port 10000
    http_access allow our_networks
    http_access allow localhost
    http_access allow webmin
    http_access allow CONNECT webmin_port our_networks
    I than added the following line

    Code:
    http_access allow CONNECT webmin_port localhost
    So I copied and modified the last rule so it also allowed localhost through.

    restart the squid service and you should be sweet.
    Worked for me

  5. #5
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Sqiud is blocking access to Webmin

    What am I supposed to put in /etc/squid/webmin.acl ? Because it doesn't exist, and I don't know what to put in it. (I'm no Squid expert, let alone understand the Access Control Lists! )

    Here is what I have:
    Code:
    acl my_network src 192.168.0.0/24
    http_access allow my_network
    http_access allow localhost
    
    # ALLOW WEBMIN
    acl webmin url_regex "/etc/squid/webmin.acl"
    acl webmin_port port 10000
    http_access allow CONNECT webmin_port my_network
    http_access allow CONNECT webmin_port localhost
    And then Squid is complaining when I restart it:
    Code:
     * Restarting Squid HTTP proxy squid                                            2008/09/12 11:21:03| strtokFile: /etc/squid/webmin.acl not found
    2008/09/12 11:21:03| aclParseAclLine: WARNING: empty ACL: acl webmin url_regex "/etc/squid/webmin.acl"
    Dr Small
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  6. #6
    Join Date
    Mar 2008
    Beans
    14

    Re: Sqiud is blocking access to Webmin

    Sorry mate, I forgot to add that in.
    The contents of "/etc/squid/webmin.acl" should be the URL of your webmin server.

    So in my "/etc/squid/webmin.acl" file I have https://192.168.1.3:10000

    Cheers

  7. #7
    Join Date
    Jun 2010
    Beans
    3

    Re: Sqiud is blocking access to Webmin

    I know this is an OLD topic, but it is still relevant.
    I used this thread to help me when I setup early in the piece, and now that I have 'upgraded' to 12.04, I needed this again, but I have a few changes

    Since the new version uses SQUID3, you need to adjust the configs accordingly....

    The file "/etc/squid3/webmin.acl" will need to contain:
    (*or whatever your squidserver's IP address is.)

    In the "/etc/squid3/squid.conf" file you need to have:
    Code:
    acl my_network src 192.168.1.0/24 
    http_access allow my_network 
    http_access allow localhost 
    acl webmin url_regex "/etc/squid/webmin.acl" 
    acl webmin_port port 10000 
    http_access allow CONNECT webmin_port my_network 
    http_access allow CONNECT webmin_port localhost
    So, once again, thanks Jarr0d this works a treat.

    -KegRaider

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •