Add

HOWTO Proxy HTTP traffic using Squid


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.

No comments yet.

Respond

get in on the action.

* Required

Random Posts Recent Comments

  • Tony Says:

    Thanks it works! Just close the cmd windows and open a new one...

  • greenhart Says:

    I found another way around it. For the /format switch I used: /format:"%WINDIR%\system32\wbem\en-...

  • Jari Aalto Says:

    To determine OS, you can also use command lsb_release(1). See the options how to extract only part o...

  • shadovice Says:

    thanks! it worked like a charm, although there is still minor typo remained: rpm -Uvh http://downlo...

  • Joh Says:

    Great, thank you. Also works with the new version and Centos 6.3 without test repo, just install ...

  • sierprinsky Says:

    Muchas gracias por tu aporte :)...

  • kilby Says:

    The listed solution worked fine for me under Win7 64bit Though I had to run the copy as Asministr...

  • Viper5112 Says:

    The files are already in the C:\Windows\SysWOW64\wbem\en-US and they need to be in the system32 fold...

  • slowmOoh Says:

    Thanks...

  • Jørgen Says:

    @Jordan, I had the same problem also on Windows 7 64 bits. It worked for my user account and Admini...

Tag Cloud

backup mail backup mail server backup mailserver backup mx cd burner control multiple computers with one keyboard and mouse control panel DAG disk benchmark disk performance test DNS DNS check enable dag repo free cd burner free DNS check hdd benchmark http proxy install keyboard over network kloxo kloxo 64-bit kvm lxadmin lxadmin-master lxlabs mouse over network mtr ping plotter proxy proxy hide IP qmail repo RPM rpmforge share keyboard and mouse over network share keyboard over network share mouse and keyboard share mouse over network software kvm squid squid hide IP squid proxy trace traceroute tracert