[SQUID] memblokir website pada jam tertentu

Oktober 11, 2011 at 5:51 am Tinggalkan komentar

Ada pertanyaan dari seseorang, bagaimana mem block facebook , youtube pada jam kantor ?
Dikarenakan karyawan selalu main facebookan pada jam kantor.

caranya ? bisa diselesaikan dengan SQUID acl.

buat file block.acl di /etc/squid
isinya list dari web site yang mau di blokir

trus tulis di squid.conf seperti ini


acl office_time time MTWHF 09:00-18:00
acl bad url_regex "/etc/squid/block.acl"
acl lan_ip src 192.168.9.0/24
http_access deny lan_ip bad office_time

ini untuk mendeklarasikan jam kantor, jam 9 sampai jam 18 pada hari Senin, Selasa,Rabu, Kamis, Jumat
acl office_time time MTWHF 09:00-18:00

Panggil list url yang mau diblokir
acl bad url_regex "/etc/squid/block.acl"

Ini deklarasi lan_ip internal
acl lan_ip src 192.168.9.0/24

dan ini perintah untuk menblokir
http_access deny lan_ip bad office_time

Semoga berhasil !

Entry filed under: Uncategorized. Tags: .

Unban user dari fail2ban

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


 

Oktober 2011
M S S R K J S
« Sep    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Kategori


Ikuti

Get every new post delivered to your Inbox.