Lets Cekidot aja deh..
yang harus di cek pertama kali yaitu
1. mengecek squid yg di install#rpm -qa |grep squid
jika belum diinstal, maka perlu di install dengan menggunakan DVD Fedora kembali..

2.Edit file konfigurasi squid#gedit /etc/squid/squid.conf
http_port 8080
icp_port 0
cache_dir ufs /var/spool/squid 100 16 256
cache_mem 8 MB
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.logcache_store_log /var/log/squid/store.log
#cache_mgr rezaishaqm@rezaishaqm.co.uk #pakealamatsendiri
acl situs_terlarang dstdomain "/etc/squid/porn_domain.txt"
#deny_info PESAN_ERROR situs_terlarang
acl porn_ip dst "/etc/squid/porn_ip.txt"
#deny_info PESAN_ERROR porn_ip
acl kata_terlarang url_regex -i "/etc/squid/kata_terlarang.txt"
#deny_info PESAN_ERROR kata_terlarang
http_access deny situs_terlarang
http_access deny porn_ip
http_access deny kata_terlarang#visible_hostname rezaishaqm.co.uk
acl all src 0.0.0.0/0.0.0.0
#acl working_time time M T W H F 9:00-17:00
#acl opensite dstdomain ckb.net.id
#http_access allow opensite
#http_access deny all working_time
#http_access allow all
#acl blok_file urlpath_regex "/etc/squid/blokfile.txt"
#http_access deny blok_file
#http_access allow all
cache_effective_group squid
cache_effective_user squid
4.

kemudian buat isi dari kata_ terlarang...
# gedit /etc/squid/kata_terlarang.txt
sex
telanjang
xxx
5. kemudian buat isi dari porn_ip
# gedit /etc/squid/porn_ip.txt
209.247.228.203
204.204.222.06
130.12.13.14
6. kemudian buat isi dari porn_domain
# gedit /etc/squid/porn_domain.txt"
www.sex.com
www.playboy.com
www.xxx.com
Untuk menjalankan servicenya, gunakan saja perintah:
# service squid restart
#/etc/rc.d/init.d/squid restart

Tidak ada komentar:
Posting Komentar