Be sure the set these variables in your squid.conf file in /etc/ directory
* httpd_accel_host virtual
* httpd_accel_port 80
* httpd_accel_with_proxy on
* httpd_accel_uses_host_header on
All the rest is pretty straight forward.
You will also have to configure your iptables to enable transparent proxy.
