Thursday, January 28, 2016

How to configure the squid proxy server


How to configure the squid proxy server in RHEL6/CentOS6
                                          Squid Proxy Server


    Squid is a proxy server for caching and filtering web content . Squid proxy is used by various organisation and internet providers to reduce bandwidth and to increase response time .
Squid proxy service will cache the requested web-content and re-using it for the further request of the same content .

Port No:3128 (default) ,8080
Configuration File: /etc/squid/squid.conf
Required Package:squid

  • Install Squid proxy
  • Block specific web sites
  • Block specific keywords
  • Block Specific IP Address
  • Allow Full Access to specific IP Address
  • Changing squid proxy port number
  • Restricting download size

Install Squid proxy:

Step1: Install squid package

#yum install squid* -y

     By default squid configuration file “/etc/squid/squid.conf” will contains recommended minimum configuration and squid caching feature will work without making any changes .

Step2:Restart the squid service

#chkconfig squid on
#service squid restart

Step3:Setup your web browser to access Internet through proxy server on port 3128.
IE : Tools » Internet options »Connections » LAN settings » Choose “Use a proxy server for your LAN” » “Type your Proxy server ip (192.168.1.2 ) and port no 3128”
Firefox : Edit » Preferences » Advanced » Network » Settings » Choose “Manual proxy configuration ” » “Type your Proxy server ip (192.168.1.2 ) and port no 3128”
Step4:Browse some site and check log file

#cat /var/log/squid/access.log
1355301698.350 1991 192.168.1.2 TCP_MISS/200 14330 GET http://5.178.71.5/ - DIRECT/5.178.71.5 text/html

1355301703.927 5413 192.168.1.2 TCP_MISS/304 301 GET http://www.google-analytics.com/ga.js -

Troubleshoot:
If you not able to access the internet through proxy settings, disable the Firewall (IP tables) and SE-Linux settings.

Disable Firewall (IPtables):

#chkconfig iptables off
#service iptables stop

Disable SELinux :

#vim /etc/selinux/config
SELINUX =enforcing replace with “SELINUX=disabled”

Now reboot the system and try to browse.



Configure the squid proxy as Web Filter 



Facebook Twitter Google+ WhatsApp StumbleUpon Pinterest Addthis

MAXIT INTERNET

BLOGGER

CD DVD RW

DELL

DOWNLOAD

FTP Server Linux

HACK

HARD DRIVE

HOW TO WORKIN

HARDWAER

INTERNET

INTERNET CAFE

LAPTOP

LENOVO

LINUX

Additional configuration for Samba Server (Part 2)  

BSNL/Airtel/Idea using Huawei E156G 3g Wireless USB Linux 5   

Basic File Extensions    CHANGING AN ACCOUNT EXPIRATION DATE   

Configure Linux as a Router   

Configure SAMBA Server (Part-1)   

Configure VNC server   

Configure Yum Server (Part-1)   

Configure yum server for Client machine (Part 3)   

Configuring Samba as a Standalone Server (Part 3)  

Connecting ftp Server with Anonymous User Part 5  

Create ftp account with Shared directory Part 3  

DHCP Server Configuration Part 2  

DHCP Server Configuration Part-1  

DHCP Server Configuration Part-3  

Enabling FTP Services in Yum Server (Part 5)  

FTP Server Configuration Part 1  

FTP Server How to Change In Primary DNS Server Part 2  

HTTP Client side configuration (Part 4)  

How to Vsftpd conf files Parameter Part 6   

LINUX FILE SYSTEM STRUCTURE  

Linux User Administrtion  

Linux as a Router configuration for Client Machine   

Linux client machine FileZilla FTP Client Part 4  

Local Yum Server (Part 2)  

Modifying Existing User Information  

Primary DNS Server Configuration Part-1  

Primary DNS Server Configuration Part-2    

Primary DNS Server Configuration Part-3  

Remove Linux From Your Pc Safely and restoring your MBR  

Sharing & Accessing Samba Share (Part 4)   

Speeding up your internet connection under Linux and Windows   

THE ROOT FILE SYSTEM   

VNC Server Configuration

LINUX LAB

Linux as a Router

MOTHERBOARD

Mobile

NETWORKING

REDHAT 5

REGISTRY EDTOR

RESET BIOS PASSWORD

SAMBA Server Linux

SERVER

SERVER CONFIG

SOFTWAER

VNC server Linux

Window 10

Window XP

Follow by Email

MAX-IT INTERNET

MAX-IT INTERNET
TIPS AND TRICKS