HOWTO Proxy HTTP traffic using SquidPosted: March 15, 2009 at 1:58 am | Tags: http proxy, proxy, proxy hide IP, squid, squid hide IP, squid proxy
This simple guide will explain how to configure an HTTP proxy using Squid.
To begin, install Squid:
# yum install squid
Now modify the Squid configuration file:
# vim /etc/squid/squid.conf
Speficically look out for or uncomment/add the following options in squid.conf:
http_port 3128 – this is where you speify the port you want the proxy server to listen on.
acl our_networks src 192.168.0.1/24 – replace 192.168.0.1/24 with the IP's you want to allow access to the Squid proxy.
http_access our_networks – allow access to the acl that you have defined above.
For further anonymity, you can set the following options. This should also prevent Squid from revealing itself, as well as the IP address that it is forwarding for:
header_access Proxy-Connection deny all
header_access X-Forwarded-For deny all
header_access Connection deny all
header_access Via deny all
header_access Cache-Control deny all
header_access Keep-Alive deny all
fo rwarded_for off
Once you have specified the above, you can save your changes and then restart Squid:
# service squid restart
Your proxy server should now be up and running, ready to proxy HTTP traffic. In your favourite broswer, find the option where you specify a proxy server, and then specify your server's IP address, followed by the port number. For example, in Firefox you can find the proxy settings by going to Options -> Advanced -> Network -> Settings.