##### STEP1 ASSIGN ISP DNS #####
#vi /etc/resolv.conf
nameserver 192.168.50.250
:wq!
#### STEP 2 CHECK AND INSTALL THE PACKAGES ##########
#rpm -qa squid*
#yum install squid* -y
#### step 3 EDIT THE CONFIGURATION FILE ##############
#vim /etc/squid/squid.conf
go to line no 13 add your rule
acl pro_network src 192.168.50.0/24
http_access allow pro_network
:wq(save & quit )
#service squid restart
###################GO TO CLIENT SIDE#################################
OPEN WEB SERVER
firefox &
go to EDIT —> PREFERENCES—>ADVANCE—>NETWORK—>SETTINGS
check manually proxy tab
assign proxy server ipaddress and port no 3128
#### STEP 4 TO BLOCK A PARTICULAR WEB SITE #####
again open configuaration file
“open again configuration file and add above of the previous rules”
acl pro1 url_regex www.yahoo.com
http_access deny pro1
:wq!
#service squid restart
##################GO TO CLIENT SIDE AND CHECK IT#############################
open browser
http://www.yahoo.com
#### STEP 5 TO BLOCK PARTICULAR IP ADDRESS ###########
“open again configuration file and add above of the previous rules”
acl pro2 src 192.168.50.10
http_access deny pro2
:wq!
#service squid restart
##################GO TO CLIENT SIDE AND CHECK IT#############################
open browser
http://www.yahoo.com, gmail,bmw
############BLOCK THE MULTIPLE IPS######################
vi /ip
192.168.50.10
192.168.50.11
192.168.50.12
:wq!
“open again configuration file and add above of the previous rules”
#vi /etc/squid/squid.conf
acl pro3 src “/ip”
http_access deny pro3
:wq!
#service squid resart
##################GO TO CLIENT SIDE AND CHECK IT#############################
open browser
http://www.yahoo.com, gmail,bmw
##############BLOCK THE MULTIPLE WEBSITE#############
#vi /web
www.yahoo.com
www.gmail.com
www.zooom.com
:wq!
“open again configuration file and add above of the previous rules”
#vi /etc/squid/squid.conf
acl pro4 url_regex “/web”
http_access deny pro4
:wq!
#service squid restart
##################GO TO CLIENT SIDE AND CHECK IT#############################
open browser
http://www.yahoo.com, gmail,bmw
###############TO BLOCK THE PORT #####################
acl rule5 port 80
http_access deny rule5
:wq!
#service squid restart
##################GO TO CLIENT SIDE AND CHECK IT#############################
open browser
http://www.yahoo.com, gmail,bmw
ftp://192.168.50.250
### Step 4 CHECK THE OUTPUT AT CLIENT SIDE ######
#################TO ALLOW PARTICULAR TIME##########################3
#vi /etc/squid/squid.conf
acl pro6 time S M T W H F A 9:30-17:30
http_access allow pro6
:wq!
#service squid restart
##################GO TO CLIENT SIDE AND CHECK IT#############################
open browser
http://www.yahoo.com, gmail,bmw
####################TO BLOCK THE PARTICULAR TIME########################
#vi /etc/squid/squid.conf
acl rule7 time S M T W H F A 13:00-14:30
http_access deny rule7
:wq!
# service squid restart
##################GO TO CLIENT SIDE AND CHECK IT#############################
open browser
http://www.yahoo.com, gmail,bmw
###################TO BLOCK PARTICULAR MAC ADDRESS########################3
#vi /etc/squid/squid.conf
acl rule8 arp 00:DA:23:98:CA:11
http_access deny rule8
:wq!
#service squid restart
######################GO TO CLIENT SIDE############################
open the browser
http://www.progroup.com