Find the answer to your Linux question:
Results 1 to 2 of 2
Hello I am moderately familiar with Ubuntu linux and a novice with Squid Proxy. I am trying to setup a squid proxy server to secure my small network. 1 proxy ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    1

    Squid Proxy blocking all sites


    Hello I am moderately familiar with Ubuntu linux and a novice with Squid Proxy. I am trying to setup a squid proxy server to secure my small network. 1 proxy server about 5 machines. My proxy server is running Ubuntu Server 10.10 (Marverick Meerkat) and Squid 2.7 Stable 9. When I try to go to any website through the proxy running on port 8080 and 3128. I get a message that the proxy server declined the request. Here is what I have in custom rules section of my squid.conf file.

    Code:
    # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
    
    acl clients src 192.168.0.0/200 192.168.1.1/200
    
    acl badsites dstdomain .ex.com
    
    acl time goodtimes MTWTFAS 12:00 - 24:00
    
    http_access allow clients goodtimes
    
    http_access deny badsites
    Is there something I'm missing? If so please help

  2. #2
    Just Joined!
    Join Date
    Apr 2010
    Location
    Bangalore, India.
    Posts
    12
    try with this conf:

    http_port 8080
    acl time goodtimes MTWTFAS 12:00 - 24:00
    acl clients src 192.168.0.0/255
    acl badsites dstdomain .ex.com
    http_access deny badsites
    http_access allow clients goodtimes
    http_access deny all

    hope this helps..
    and also check you are using it in that specified timing.. check with proxy server time.
    Last edited by antony_pradeep; 03-18-2011 at 05:34 AM. Reason: one point missed

Posting Permissions

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