How to create your own squid proxy server on CentOS

How to create your own squid proxy server on CentOS

Squid is a proxy server for caching and filtering web content .
Squid proxy service will cache the requested web-content and re-using it for the further request of the same content.

You can also hide your real IP with squid and access content usually forbidden for your country or IP address.

Requirement is that you have already installed your CentOS server.

1.) Connect with putty to install and configure squid

3 Lines
yum update
yum install squid
cd /etc/squid3
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Make backup of default configuration just in case…

1 Lines
cp squid.conf squid.conf.bak
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Remove default configuration

1 Lines
rm -rf squid.conf
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Create and open new configuration in nano (you can use any other editor)

1 Lines
nano squid.conf
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Paste this 2 lines of code into your new configuration file

2 Lines
http_access allow all
http_port 20000
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Save configuration

6.) Start squid service

1 Lines
service squid start
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

7.) To check your connection use telnet IP on port defined in your squid configuration.
In this case 20000

1 Lines
telnet IP 20000
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Your proxy server is ready if your connection was successiful.
Setup your OS to use this proxy server and go to http://whatsmyip.org to check your new IP address.
Don’t forget to open port 20000 on your server firewall.

Check this article to configure squid on Ubuntu:

http://netjunky.net/how-to-create-your-own-squid-proxy-server-with-azure/

 

How to create your own squid proxy server with Azure and Ubuntu

How to create your own squid proxy server with Azure and Ubuntu OS.

Squid is a proxy server for caching and filtering web content .
Squid proxy service will cache the requested web-content and re-using it for the further request of the same content.You can also hide your real IP with squid and access content usually forbidden for your country or IP address.

1.) Sign in to your Azure Portal and create VM

How to create your own squid proxy server with Azure

2.) Choose Ubuntu Server 14.04 LTS

How to create your own squid proxy server with Azure

 

3.) Configure your VM

 

How to create your own squid proxy server with Azure

4.) Create endpoint higher then 1024 for example 20000

How to create your own squid proxy server with Azure

5.) Connect with putty to install and configure squid

2 Lines
sudo apt-get install squid -y
cd /etc/squid3
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Make backup of default configuration just in case…

1 Lines
sudo cp squid.conf squid.conf.bak
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Remove default configuration

1 Lines
sudo rm -rf squid.conf
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Create and open new configuration in nano (you can use any other editor)

1 Lines
sudo nano squid.conf
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Paste this 2 lines of code into your new configuration file

2 Lines
http_access allow all
http_port 20000
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Save configuration

6.) Restart squid service

1 Lines
sudo service squid3 restart
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

7.) To check your connection use telnet IP on port defined in your squid configuration.
In this case 20000

1 Lines
telnet IP 20000
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Your proxy server is ready if your connection was successiful.
Setup your OS to use this proxy server and go to http://whatsmyip.org to check your new IP address.