The squid proxy is available at http://squid.nlanr.net/ .
The SQUID developers provide RedHat and Debian packages. If you can, use one of these.