rinto wrote:

salam

aku punya masalah dengan internet di kantor aku yang mau aku tanyakan
bagaimana settingan di squid untuk masalah berikut :
aku punya ip dari 192.168.1.20 - 192.168.1.40 yang bisa internet, dan aku
sudah setting dan sudah berjalan lancar, dan aku batasi besarnya file yang
bisa di download masing2 sebesar 2MB itupun berjalan lancar, namun untuk
ip 192.168.1.25 special case, aku ingin batasi file yang bisa di download
sebesar 5MB.
bagaimana settingannya di squid agar ip 192.168.1.25-nya itu bisa download
file lebih besar di bandingkan ip yang lainnya!!!
bisa lihat squid.conf nya ...??
acl domainterlarang dstdomain "/etc/squid/domain-terlarang.txt"
acl kataterlarang url_regex -i "/etc/squid/kata-terlarang.txt"

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 to_localhost dst 127.0.0.0/8
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 Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

acl divisia src 192.168.1.100-192.168.1.119/255.255.255.255
acl divisib src 192.168.1.181-192.168.1.188/255.255.255.255
acl divisic src 192.168.1.189/255.255.255.255 # IP yg di maksud (special case)
acl tidakbebasdownload time 08:00 - 16:00
acl magic_words2 url_regex -i ftp .exe .mp3 .avi .mpeg .mpg .mpe .wav .iso


http_access deny domainterlarang
http_access deny kataterlarang
http_access allow manager localhost
http_access deny divisia
http_access allow divisib
http_access allow divisic # IP yg di maksud (special case)
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all

# cancel download if file is bigger than 1MB = 1000 x 1024 byte = 1024000 byte
reply_body_max_size 1024000 allow magic_words2 tidakbebasdownload
#file yang di download max 1 MB

nb: "# IP yg di maksud ( special case ) " adalah ip yang akan di setting untuk download file max 5 MB.

tolong settingnya spt apa? agar ip yang lain hanya bisa download 1 MB dan ip 192.168.1.189 bisa download 5 MB

coba ini

reply_body_max_size 5120000 allow divisic reply_body_max_size 5120000 deny !divisic reply_body_max_size 1024000 allow magic_words2 tidakbebasdownload

or

reply_body_max_size 5120000 deny !divisic reply_body_max_size 1024000 allow magic_words2 tidakbebasdownload

CMIIW



--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke