Results 1 to 4 of 4

Thread: Squid, Blocking Every Website

  1. #1
    Join Date
    May 2009
    Beans
    174
    Distro
    Ubuntu 10.04 Lucid Lynx

    Squid, Blocking Every Website

    I'm trying to block a few websites from my network, but when I have Squid used as my proxy, every website is blocked. I get this error for every website:
    Code:
    ERROR The requested URL could not be retrieved  The following error was encountered while trying to retrieve the URL: http://www.google.com/      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.  Your cache administrator is webmaster.  Generated Fri, 11 Feb 2011 11:11:17 GMT by NETWORK-SERVER (squid/2.7.STABLE9)
    The only changes I've made to my squid.conf is:
    Code:
    acl bad url_regex "/etc/squid/squid-block.acl" http_access deny bad
    and /etc/squid/squid-block.acl contains:
    Code:
    .4chan.org .redtube.com .brazzers.com .brazzersmobile.com
    EDIT: I don't have it the way the forum parsed the text, it's all on it's own line.
    Last edited by Hovercat; February 11th, 2011 at 12:27 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    Lake Constance
    Beans
    155
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Squid, Blocking Every Website

    I think the default setting for Squid is to block all traffic. You must allow the other computers to access the internet.

    Example (for all computers within 192.168.1.x):


    Code:
    acl allcomputers src 192.168.1.0/255.255.255.0
    http_access allow allcomputers
    EDIT: WARNING: I'm no expert on the subject and this might cause security problems.
    Last edited by Blutkoete; February 11th, 2011 at 01:29 PM.
    If SUDO is all-powerful, can SUDO start a process that SUDO can't kill?

  3. #3
    Join Date
    May 2009
    Beans
    174
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Squid, Blocking Every Website

    Thanks, I'll try it when I get home.

  4. #4
    Join Date
    May 2009
    Beans
    174
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Squid, Blocking Every Website

    Oh my god! It works! Thank you soooooo much!

Tags for this Thread

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
  •