Konfigurasi :
/etc/squid/squid.conf
cari visible_hostname
/VISIBLE_HOSTNAME –> untuk mencari
lalu
PC46 tidak berpengaruh yang penting di visible_hostname harus diisi
Lalu cari INSERT
/INSERT
di squid pertama tentukan DEFINISI lalu dilanjutkan dengan IZIN
acl jaringan src 192.168.1.0/24
jaringan definisi access-list dimana 192.168.1.0/24 merupakan source dari access list
access list jaringan http_access deny
jadi jaringan yang berasal dari network 192.168.1.0 tidak bisa connect http
lalu keluar dan nyalakan service squid
#SERVICE SQUID START
restart squid
#SQUID -k RECONFIGURE
cek proxy di firefox
edit –> preferences –> advances –> network –> setting lalu isi proxy dengan ip komputer masing2 dan port 3128
Pesan Error
BLOK DETIK.COM
PERHATIKAN DETIK.COM
YANG ATAS WWW.DETIK.COM BISA CONNECT KALO YG BAWAH TIDAdd the Configurations to squid.conf
[root@server ~#]vi /etc/squid/squid.conf
#1: Create an acl for proxy clients.
acl accountant src 192.168.10.50/32
#2: Create an acl for facebook domain (any required sites)
acl fb dstdomain .facebook.com
#3: Create an acl office time for Mon-Sat, 10:00 to 17:00 (24hrs)
AK
[root@server ~#]vi /etc/squid/squid.conf
#1: Create an acl for proxy clients.
acl accountant src 192.168.10.50/32
#2: Create an acl for facebook domain (any required sites)
acl fb dstdomain .facebook.com
#3: Create an acl office time for Mon-Sat, 10:00 to 17:00 (24hrs)
acl officetime time MTWHFA 10:00-17:00
#4: Deny access to "http" facebook to accountant only in office times
http_reply_access deny
fb accountant officetime
#5: The below line will deny access to "https" secured facebook to the proxy user "accountant" in office times. Squid proxy will deny access to "https" facebook to accountant only in office times.
http_access deny CONNECT fb accountant officetime
http_access deny CONNECT fb accountant officetime
#(save the squid.conf configuration file)
#6: And finaly reload squid service to take effect changes
[root@server ~#]service squid reload
Tips: The way to include multiple sites in one ACL
acl badsites dstdomain .facebook.com .twitter.com .blogger.com
Tips: The way to include multiple sites in one ACL
acl badsites dstdomain .facebook.com .twitter.com .blogger.com
SEMOGA BERMANFAAT …






0 komentar:
Posting Komentar