The SQUID transparent filtering How-to page - Yaritz Consulting: The Consultation Company  


The SQUID transparent filtering how-to page

This page is written as generic.  Please note this as you will need to rewrite these instructions for your own operating system.

Now to get this installed, you need to download squid and DansGuardian.  You will want the source code as you need to compile it on your system using special options.

Now to get down to the basics:

  1. Compile your kernel with a firewall and ip forwarding.
  2. Unzip code.
  3. cd to squiddir
  4. run ./configure
  5. run make and make install
  6. Add these options into the squid.conf file:

    Squid 2

    
    httpd_accel_host virtual
    
    httpd_accel_port 80
    
    httpd_accel_with_proxy on
    
    httpd_accel_uses_host_header on
    
    
    
    forwarded_for off
    
    header_access X-Forwarded-For deny all
    
    header_access Via deny all
    
    
    
    

    Squid 3

    
    http_port 3128 transparent
    
    
    
    via off
    
    request_header_access X-Forwarded-For deny all
    
    forwarded_for delete
    
    
  7. cd to dansguardian
  8. run ./configure
  9. run make and make install
  10. put this in your dansguardian.conf file
    
    filterip = 0.0.0.0
    
    filterport = 8080
    
    proxyip = 127.0.0.1
    
    proxyport = 3128
    
    
  11. now add your firewall rules to point all outbound port 80 requests to port 8080 on the squid server.
You are now done.  Please test your setup.