config squid to block msn messenger and Bit torrent

#######################
###Techtoy Block MSN config###
######################
1. Config squid.conf file
#vi /etc/squid/squid.conf

acl msn_user src "/etc/squid/msn_user_list.txt"
acl msn_server req_mime_type application/x-msn-messenger
acl msn_server2 req_mime_type ^application/x-msn-messenger$
acl msn_url url_regex -i gateway.dll

#Allow msn to some user
http_access deny !msn_user msn_server
http_access deny !msn_user msn_url
http_access deny !msn_user msn_server2



##########################
###Techtoy Block Bit torrent config###
#########################
acl bit_torrent req_mime_type application/x-bittorent
acl bit_torrent req_mime_type ^application/x-bittorent$

http_access deny bit_torrent


2. save and exit
3. Create file msn_user_list.txt
#vi msn_user_list.txt
192.168.1.1 <------ Add ip to allow user to user msn
192.168.1.x
.
.
.
.
4. save and exit
5. reload squid
#/etc/rc.d/init.d/squid reload




.

ความคิดเห็น

Unknown กล่าวว่า
ขอบคุณมากครับ จะลองไปใช้ดูครับ

บทความที่ได้รับความนิยม