If you want to make your own proxy server with CentOS 6, 32/64bit OS, here is the guide....
First, we need to install Squid:
yum update
yum install squid -y
Edit /etc/squid/squid.conf and add the following lines: (to allow access from authenticated persons and disable ipv6)
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 2
auth_param basic realm My Proxy Server
auth_param basic credentialsttl 24 hours
auth_param basic casesensitive off
acl users proxy_auth REQUIRED
http_access deny !users
http_access allow users
tcp_outgoing_address SERVERIP all
You need to remove this line "http_access deny all" and can change "http_port 3128" to any other port. For example "http_port 8080"
Next, create our authentication file which Squid can use to verify for user authentications:
touch /etc/squid/passwd
chown root.squid /etc/squid/passwd
chmod 640 /etc/squid/passwd
htpasswd /etc/squid/passwd USERNAME
chkconfig --level 2345 squid on
/etc/init.d/squid restart