Workshop Linux Proxy Server


hari ini lagi mngikuti workshop di hi-techmall nih jeh..

ini setting squid3 minimalis waktu workshop….

#—————————————————————-

# port proxy
#—————————————-
http_port 3128

# memory cache // lbih bsr lbih baik
#——————————————-
cache_mem 8 MB

# penyimpanan max ke squid proxy
#——————————————-
maximum_object_size 64 MB
minimum_object_size 1 KB

# untuk penyimpanan ke HDD
#—————————————–
#cache_replacement_policy heap LFUDA

# untuk pengimpanan ke memory
#——————————————
#memory_replacement_policy heap GDSF

# cache k hardisk
# ‘aufs’ type file / file sistem terbaru squid dr mulai ver 2.6
# 6000 MB default –> minimal 9 GB
# max 14 directory
# max 256 subdirectory
# ——————————————
#cache_dir aufs /cache 6000 14 256

cache_access_log /var/log/squid3/access.log

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl workshop src 192.168.1.0/255.255.255.0
acl block dstdomain .google.com
acl ext url_regex -i \.pdf \.txt \.iso
acl waktu time 13:30-13:42
acl kata url_regex -i linux klas
acl PURGE method PURGE
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl CONNECT method CONNECT

# stlh acl baru ke http
# hati2 meletakkan http_access posisi mnentukan hak akses
# hati2 dgn peletakan perintah sebelum/sesudah http…localhost
#———————————————————————-
http_access allow manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow PURGE localhost
http_access deny PURGE
reply_body_max_size 200 MB ext
# http_access deny ext
http_access deny block waktu kata
http_access allow workshop
http_access deny kata
http_access allow localhost
# http_access allow block
http_access deny all

cache_mgr ariya@labmm.net.id
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.cybernet.id

# pembatasan bandwith global
delay_pools 1
# -1/-1 untuk unlimited
delay_class 1 3
# karena di atas pakai class 3
# maka ada 3 parameter
delay_parameters 1 -1/-1 -1/-1 200000/100
delay_access 1 allow ext
delay_access 1 deny all

# edit ariya

#—————————————————————-

by Admin

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

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

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: