- Order a Cloud Linux package with CentOS 6 64 bit OS
- Log into the server using Putty or SecureCRT
- Run the following commands -
- yum -y install squid
- chkconfig squid on
- Next setup access restrictions to prevent anyone from using the squid proxy
- Using pico or vi edit the following file and add your IP address. You can obtain your IP address by visiting www.ipchicken.com
- /etc/squid/squid.conf
- Add the following code where replace the IP with your IP address -
- acl localnet src 123.456.56.896
- Using pico or vi edit the following file and add your IP address. You can obtain your IP address by visiting www.ipchicken.com
- By default squid runs on port 3128 but if you wish to change the port, please edit the file /etc/squid/squid.conf
- http_port 3128
- To prevent your server from being detected as a proxy, setup the following in /etc/squid/squid.conf
via off forwarded_for off request_header_access Allow allow all request_header_access Authorization allow all request_header_access WWW-Authenticate allow all request_header_access Proxy-Authorization allow all request_header_access Proxy-Authenticate allow all request_header_access Cache-Control allow all request_header_access Content-Encoding allow all request_header_access Content-Length allow all request_header_access Content-Type allow all request_header_access Date allow all request_header_access Expires allow all request_header_access Host allow all request_header_access If-Modified-Since allow all request_header_access Last-Modified allow all request_header_access Location allow all request_header_access Pragma allow all request_header_access Accept allow all request_header_access Accept-Charset allow all request_header_access Accept-Encoding allow all request_header_access Accept-Language allow all request_header_access Content-Language allow all request_header_access Mime-Version allow all request_header_access Retry-After allow all request_header_access Title allow all request_header_access Connection allow all request_header_access Proxy-Connection allow all request_header_access User-Agent allow all request_header_access Cookie allow all request_header_access All deny all
- To start squid proxy service, run the following command
- service squid start
- To start using squid, edit your browser or program settings to start using the server IP and port.