Para suhu dan master mikrotik dan squid....
saya ada problem pada saat download ke dua kali nya dengan file yang sama tetap mengambil dari internet berarti si squid tdk men cache file yang sudah saya download sebelum nya...mohon para master2 mikrotik dan squid sudi kira nya memecahkan dan membantu newbie yang baru blajar mikrotik dan squid...
Setting squid.conf
Code:
#-----------------------------------#
# Proxy Server Versi 2.7.Stable7
#-----------------------------------#
#---------------------------------------------------------------#
# Port
#---------------------------------------------------------------#
http_port 3128 transparent
icp_port 3130
prefer_direct off
#---------------------------------------------------------------#
# Mengatasi Facebook Blank setelah login
#---------------------------------------------------------------#
server_http11 on
#---------------------------------------------------------------#
# Cache & Object
#---------------------------------------------------------------#
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
max_filedesc 8192
maximum_object_size 128 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 4 bytes
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
#----------------------------------------------------------------#
# cache_dir <type> <Directory-Name> <Space in Mbytes> <Level1> <Level2> <options>
#----------------------------------------------------------------#
cache_dir aufs /home/proxy1 7000 16 256
cache_dir aufs /home/proxy2 7000 16 256
cache_dir aufs /home/proxy3 7000 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
cache_swap_log /var/log/squid/swap.state
dns_nameservers /etc/resolv.conf
emulate_httpd_log off
hosts_file /etc/hosts
half_closed_clients off
negative_ttl 1 minutes
#---------------------------------------------------------------#
# Rules: Safe Port
#---------------------------------------------------------------#
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 localnet src 192.168.0.0/255.255.255.0
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 # http
acl Safe_ports port 20 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 631 # cups
acl Safe_ports port 10000 # webmin
acl Safe_ports port 901 # SWAT
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 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 110 # POP3
acl Safe_ports port 25 # SMTP
acl Safe_ports port 2095 2096 # webmail from cpanel
acl Safe_ports port 2082 2083 # cpanel
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports
#---------------------------------------------------------------#
# Refresh Pattern
#---------------------------------------------------------------#
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^http: 720 90% 432000
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|mpg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(deb|rpm|exe|ram|bin|pdf|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(zip|gz|arj|lha|lzh|tar|tgz|cab|rar)$ 10080 95% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js|php|asp|aspx|cgi) 1440 40% 40320
refresh_pattern ^http://*.friendster.com/.* 720 100% 4320
refresh_pattern ^http://*.facebook.com/.* 720 100% 4320
refresh_pattern ^http://*.twitter.com/.* 720 100% 4320
refresh_pattern ^http://*.rf-online.*/.* 720 100% 4320
refresh_pattern ^http://*.lineage2.*/.* 720 100% 4320
refresh_pattern ^http://*.ayodance.*/.* 720 100% 4320
refresh_pattern ^http://*.indomp3z.*/.* 720 100% 4320
refresh_pattern ^http://*.gemscool.*/.* 720 100% 4320
refresh_pattern ^http://*.forummikrotik.*/.* 720 100% 4320
refresh_pattern ^http://*.*indowebster.*/.* 720 100% 4320
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yahoo.*/.* 720 100% 4320
refresh_pattern ^http://*.yimg.*/.* 720 100% 4320
refresh_pattern ^http://*.ytimg.*/.* 720 100% 4320
refresh_pattern ^http://*.liveconnector.*/.* 720 100% 4320
refresh_pattern ^http://*.windowsupdate.com/.*\.(cab|exe) 4320 100% 43200
refresh_pattern ^http://*.download.microsoft.com/.*\.(cab|exe) 4320 100% 43200
refresh_pattern ^http://*.google.*/.* 720 100% 4320
refresh_pattern ^http://*.youtube.*/.* 720 100% 4320
refresh_pattern ^http://*.myspace.*/.* 720 100% 4320
refresh_pattern ^http://*.telkomspeedy.com/.* 720 100% 4320
refresh_pattern ^http://*.kaskus.*/.* 720 100% 4320
refresh_pattern ^http://*.akamai.*/.* 720 100% 4320
refresh_pattern ^http://*.hotmail.*/.* 720 100% 4320
refresh_pattern ^http://*.wikipedia.*/.* 720 100% 4320
refresh_pattern ^http://wiki.*.*/.* 720 100% 4320
refresh_pattern ^http://*.multiply.*/.* 720 100% 4320
refresh_pattern ^http://*.jobsdb.*/.* 720 100% 4320
refresh_pattern ^http://*.karir.*/.* 720 100% 4320
refresh_pattern ^http://mail.plasa.com/.* 720 100% 4320
refresh_pattern ^http://*.detik.*/.* 60 20% 360
refresh_pattern ^http://*.detikinet.*/.* 60 20% 360
refresh_pattern ^http://*.detikhot.*/.* 60 20% 360
refresh_pattern ^http://*.detiportal.*/.* 60 100% 360
refresh_pattern ^http://*.kompas.*/.* 60 20% 360
refresh_pattern ^http://*.okezone.*/.* 60 20% 360
refresh_pattern ^http://*.trans7.*/.* 720 100% 4320
refresh_pattern ^http://*.rcti.*/.* 720 100% 4320
refresh_pattern ^http://*.indosiar.*/.* 720 100% 4320
refresh_pattern ^http://*.metrotvnews.*/.* 720 100% 4320
refresh_pattern ^http://*.transtv.*/.* 720 100% 4320
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 4320
refresh_pattern ^http://*.ebay.*/.* 720 100% 4320
refresh_pattern ^http://*.grisoft.com/.*\.(bin|exe) 4320 100% 43200
refresh_pattern ^http://*.ads.adbrite.com/.* 720 100% 4320
refresh_pattern ^http://*.adserving.*/.* 720 100% 4320
refresh_pattern ^http://*.ad.yieldmanager.*/.* 720 100% 4320
refresh_pattern ^http://*.imageshack.*/.* 100800 100% 4320
refresh_pattern ^http://*.photobucket.*/.* 100800 100% 4320
refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod
refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod
refresh_pattern . 0 20% 4320
#---------------------------------------------------------------#
# SNMP
#---------------------------------------------------------------#
snmp_port 3401
acl snmpsquid snmp_community public
snmp_access allow snmpsquid localhost
snmp_access deny all
#---------------------------------------------------------------#
# ALLOWED ACCESS
#---------------------------------------------------------------#
acl proxyku src 192.168.10.0/24
http_access allow proxyku
http_access allow localhost
http_access allow localnet
http_access deny all
http_reply_access allow all
icp_access allow proxyku
icp_access allow localhost
icp_access deny all
always_direct deny all
#---------------------------------------------------------------#
# Cache CGI & Administrative
#---------------------------------------------------------------#
cache_mgr nitaufan201204@yahoo.com
visible_hostname dns.proxyku.net
cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 14
#-----------------------------------------------------------------#
#tcp_outgoing_tos 0x30 localnet
#-----------------------------------------------------------------#
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
setting mangle di mikrotik
Code:
0 ;;; SQUID PROXY HIT
chain=forward action=mark-connection new-connection-mark=HIT passthrough=yes protocol=tcp in-interface=Linux Proxy Server out-interface=local
src-port=3128 dscp=12
1 chain=forward action=mark-packet new-packet-mark=Proxy-paket passthrough=no connection-mark=HIT
2 ;;; Limit Download
chain=forward action=mark-connection new-connection-mark=Download passthrough=yes protocol=tcp in-interface=Linux Proxy Server out-interface=local
packet-mark=!Proxy-paket connection-mark=!HIT connection-bytes=262146-4294967295
3 chain=forward action=mark-packet new-packet-mark=Download_Paket passthrough=no
4 ;;; Rule Pisah Bandwidth Browsing dan Game
chain=prerouting action=mark-connection new-connection-mark=koneksi iix passthrough=yes dst-address-list=iix in-interface=local
5 chain=prerouting action=mark-packet new-packet-mark=paket iix passthrough=no connection-mark=koneksi iix
6 chain=output action=mark-packet new-packet-mark=paket iix passthrough=no connection-mark=koneksi iix
7 chain=prerouting action=mark-packet new-packet-mark=paket int passthrough=no
8 chain=output action=mark-packet new-packet-mark=paket int passthrough=no

Mohon bantuannya untuk newbie 


