I have squidguard running on RedHat 7.3. This machine is functions as a firewall with NAT (using iptables), DNS server and Squid Proxy(using Transparent Proxy). My webserver (apache using virtual hosts) is on a different computer using a non-routable IP 192.168.X.X.
 
    The problem I have is that I can get web pages off the vitual hosts with no problem however. When I add squidquard into the squid.conf  the page I get redirected to a page that shows the following.
 
Can anyone help me with this problem.
 
Jeff
 

ERROR

The requested URL could not be retrieved


While trying to retrieve the URL: http://proxy.DOMAINNAME.com

The following error was encountered:

  • Connection Failed

The system returned:

    (111) Connection refused

The remote host or network may be down. Please try the request again.

Your cache administrator is root.


My squid.conf has the following in it

redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
 
and have my squidGuard.conf set up with the following
 
#
# CONFIG FILE FOR SQUIDGUARD
#
 
dbhome /var/lib/squidGuard/blacklists
logdir /var/log/squid
 
src admin {
# List of IP addesses here
    ip XXX.XXX.XXX.XXX
     }
 

src users {
    # List of IP addesses here
    ip XXX.XXX.XXX.XXX
     }
 
 
 
dest hacking {
 domainlist hacking/domains
 urllist    hacking/urls
        log        hacking.log
     }
 
 
 

acl {
 
 admin {
  pass all
 }
 
        users {
                pass !hacking all
                redirect http://proxy.DOMAINNAME.com
        }
 

   default {
         pass none
                redirect http://proxy.DOMAINNAME.com
         }
}

Reply via email to