Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Non Windows > Linux & Open source community

Reply
 
Thread Tools
  #1  
Old 23rd November 2011
failsystem's Avatar
failsystem failsystem is offline
Member Aktif
 
Join Date: Nov 2011
Posts: 193
Rep Power: 0
failsystem mempunyai hidup yang Normal
Default Need help .. squid di debian server

ane kan lagi nyoba squid di Debian server Lenny ..

kendala saat coba setting bandwidth masih blum bsa ,,

padahal ane udah setting di delay pools nya ..

ane pake squid 2.7



berikut source code keseluruhan ane :




Code:

http_port 3128 transparent
icp_port 0

cache_mem 16 MB
cache_swap_low 94
cache_swap_high 96
maximum_object_size 16384 KB
minimum_object_size 4 KB
fqdncache_size 1024
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF

#Direktori Log dan Cache
#-----------------------

cache_dir ufs /var/spool/squid 1024 16 256
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log

# Tuning Cache Proxy
# -------------------------

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

# Timeout
# ----------------
half_closed_clients off

acl blok url_regex -i "/etc/squid/bloksitus"

acl all src 0/0
acl admin src 192.168.5.2-192.168.5.9 255.255.255.0
acl lantai3 src 192.168.5.10-192.168.5.40 255.255.255.0
acl lantai2 src 192.168.5.41-192.168.5.60 255.255.255.0
acl lantai1 src 192.168.5.61-192.168.5.70 255.255.255.0
acl lantai0 src 192.168.5.71-192.168.5.80 255.255.255.0
acl localhost src 127.0.0.1 255.255.255.255
acl jamkerja time MTWHF 07:00-16:00

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http_mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multilink http
acl Safe_ports port 2082 #cpanel
acl Safe_ports port 7777 # LGE
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT


http_access allow jamkerja
http_access deny !Safe_ports lantai3
http_access deny !Safe_ports lantai2
http_access deny !Safe_ports lantai1
http_access deny !Safe_ports lantai0
http_access deny blok lantai3
http_access deny blok lantai2
http_access deny blok lantai1
http_access deny blok lantai0
http_access allow admin
http_access allow lantai3
http_access allow lantai2
http_access allow lantai1
http_access allow lantai0
http_access deny semua
http_access deny all
deny_info blok.html blok

#Delay Pool
acl download url_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ $
acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.d$
acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.$
acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \$
acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vo$
acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$

delay_pools 3

delay_class 1 2
delay_parameters 1 -1/-1 92500/1024000
delay_access 1 allow admin
delay_access 1 allow download
delay_access 1 deny all

delay_class 2 2
delay_parameters 2 -1/-1 16000/1024000
delay_access 2 allow lantai3
delay_access 2 allow lantai1
delay_access 2 allow lantai0
delay_access 2 allow download
delay_access 2 deny all

delay_class 3 2
delay_parameters 3 -1/-1 8000/1024000
delay_access 3 allow lantai2
delay_access 3 allow download
delay_access 3 deny all


# Administrative Paramaters
cache_mgr [email protected]
visible_hostname www.bpt.bogorkab.org

ini source bandwidth nya :



delay_pools 3



delay_class 1 2

delay_parameters 1 -1/-1 92500/1024000

delay_access 1 allow admin

delay_access 1 allow download

delay_access 1 deny all



delay_class 2 2

delay_parameters 2 -1/-1 16000/1024000

delay_access 2 allow lantai3

delay_access 2 allow lantai1

delay_access 2 allow lantai0

delay_access 2 allow download

delay_access 2 deny all



delay_class 3 2

delay_parameters 3 -1/-1 8000/1024000

delay_access 3 allow lantai2

delay_access 3 allow download

delay_access 3 deny all






Bandwidth total 1 Mbps, nah udah ane bagi2 tuh ,.

seharusnya kan pas ane coba pake ip untuk lantai1 dapetnya sekitar 16 KBps,

tapi ini masih dapet bandwidth normal 128 KBps,

begitupun yang lain.. udah ane cobain smua,,



ane test langsung IDM dan download biasa dri firefox'a tpi tetep nihil..



nih hsil scrinsutnya ..



ip address yang ane pke dpet DHCP lantai 1 :




Spoiler for ip:














dan ini hsil test download nya :




Spoiler for idm:














nah ,, permasalahannya gimana tu gan ,,

padahal pas ane coba pke ubuntu server 10.10 udah bisa tuh ,,

tapi pas ganti ke Debian koq blum bsa yaa ..



mohon bantuan dri agan2 smua,,

thx,



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 08:11 PM.


no new posts