Step 1:
Install squid using following command.
[root@MailZim
~]# yum install squid
Step 2:
Now configure the network of the windows machine in which you want to control
the internet using this proxy as shown below.
Step 2.1:
Open run command and type inetcpl.cpl
Step 2.2:
In internet properties select connections tab and select Lan settings.
Step 2.3: Select use a proxy server for your LAN as shown below and type your proxy server ip address here it is 192.168.1.63 and default port is 3128.
Step 3:
open Ip properties and remove the dns and gateway. As shown below,
Now check opening google on any of your browser, if it opens then proxy is working perfectly, else check the above steps properly.
Step 4:
Add the following highlighted lines in the squid.conf file using following
command.
[root@MailZim
~]# vi /etc/squid/squid.conf
Save
and exit using Esc :wq
Step 5:
Now create a new file using which you are going to block a group of websites,
for which the path is as said in the
above highlighted lines, here it is
Step 6:
Add the sites which you want to block as shown below, starting with . no www is
needed, save and exit after edititing.
Step 7:
Now reload the squid proxy service, using the following command,
Step 8:
To block sites separately without using any file add the following lines in
squid.conf file, as shown below,
acl
google dstdomain .google.com
http_access
deny google
Step 9 :
reload the squid service.
DONE !!! blocked using proxy squid.
No comments:
Post a Comment