RAS Infosystems. Powered by Blogger.

Monday, 22 August 2016

How To Install And Configure Squid Proxy Server CentOS 7 - Linux



Squid is an internet cache proxy server which supports HTTP, HTTPS, FTP etc. It helps us to reduce bandwidth usage by reusing frequently used webpages from caches. Squid support most of the operating systems like Linux, Windows etc.

In this article we discuss about how to install and configure Squid proxy server on CentOS 7 – Linux with different authentication schemas like LDAP, MySQL and Radius authentication and apply access control filters like IP, MAC address and usernames.

Note – All commands are tested on CentOS 7

Squid Proxy Server Installation Steps


1.     Log in to your CentOS server with root permission and enter this command

yum install squid


2.     After successful installation start squid service to test the server  using,

systemctl start squid

         
To check the squid service status using command

systemctl status squid

             
If you got any error please post it on comment section will help to resolve the issue

If no errors in “status” command then your proxy ready to accept client request.

3.     Now you have to add 3128 port (Default squid port) to iptables for accept incoming request from clients using the command,

iptables –A INPUT –p tcp –dport 3128 –j ACCEPT

             
Note – In this example we are using iptables not firewalld

4.     Now you can test the proxy server is working or not, open your browser (chrome) go to settings --> show advance setting --> network --> change proxy settings --> lansettings --> enter your proxy server IP address and port number under Proxy Server --> click ok.

Once you enter the setting you can browser internet using squid proxy server, you can check the live connection logs in proxy server using command,
  
tail –f /var/log/squid/access.log


Note – ctrl+c to exit log file.

Now you successfully installed and tested squid proxy server with default setting. For advance configurations please click on Squid Proxy Advance Configuration tutorial.


SHARE!!!!! COMMENT!!!!! SUBSCRIBE!!!!!!

0 comments:

Post a Comment

Sponsers