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:
- Compile your kernel with a firewall and ip forwarding.
- Unzip code.
- cd to squiddir
- run ./configure
- run make and make install
- 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
- cd to dansguardian
- run ./configure
- run make and make install
- put this in your dansguardian.conf file
filterip = 0.0.0.0 filterport = 8080 proxyip = 127.0.0.1 proxyport = 3128
- now add your firewall rules to point all outbound port 80 requests to port 8080 on the squid server.