Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-23-2013, 12:26 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Server › Proxy Server v
« Previous 1 2 3 4 Next »

[Help] Kurang Dimana config ane ini om....?

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
[Help] Kurang Dimana config ane ini om....?
01-01-2011, 03:44 PM
Post: #1
boegiel Offline
./Devilz 1st Cadet
Posts: 5
Joined: Dec 2010
Reputation: 0
[Help] Kurang Dimana config ane ini om....?
tolong editin om....biar confignya bisa ngelimit download om.....soalnya dah ane coba2 eror2 molo om...

tolongin ya om...

Quote:#-----------------------------------#
# Proxy Server Versi 2.7.Stable6
# by coconakal@gmail.com
# Settingan Cyberwafe
#-----------------------------------#

#---------------------------------------------------------------#
# Port
#---------------------------------------------------------------#
http_port 3128 transparent
icp_port 3130
prefer_direct off

#---------------------------------------------------------------#
# Mengatasi Facebook Blank setelah login
#---------------------------------------------------------------#

server_http11 on

#---------------------------------------------------------------#
# Cache CGI & Administrative
#---------------------------------------------------------------#
cache_mgr coconakal@gmail.com
visible_hostname CyberWafe

#---------------------------------------------------------------#
# Directory Cache
#---------------------------------------------------------------#
cache_dir ufs /var/spool/squid 4000 16 256
cache_log /var/log/squid/cache.log
access_log /var/log/squid/access.log
pid_filename /var/run/squid.pid
dns_nameservers /etc/resolv.conf
emulate_httpd_log off
hosts_file /etc/hosts
half_closed_clients off
negative_ttl 1 minutes
#---------------------------------------------------------------#
# Refresh Pattern
#---------------------------------------------------------------#

refresh_pattern -i \.gif$ 10080 90% 43200
refresh_pattern -i \.jpg$ 10080 90% 43200
refresh_pattern -i \.bom\.gov\.au 30 20% 120
refresh_pattern -i \.html$ 480 50% 22160
refresh_pattern -i \.htm$ 480 50% 22160
refresh_pattern -i \.class$ 10080 90% 43200
refresh_pattern -i \.zip$ 10080 90% 43200
refresh_pattern -i \.jpeg$ 10080 90% 43200
refresh_pattern -i \.mid$ 10080 90% 43200
refresh_pattern -i \.shtml$ 480 50% 22160
refresh_pattern -i \.exe$ 10080 90% 43200
refresh_pattern -i \.thm$ 10080 90% 43200
refresh_pattern -i \.wav$ 10080 90% 43200
refresh_pattern -i \.txt$ 10080 90% 43200
refresh_pattern -i \.cab$ 10080 90% 43200
refresh_pattern -i \.au$ 10080 90% 43200
refresh_pattern -i \.mov$ 10080 90% 43200
refresh_pattern -i \.xbm$ 10080 90% 43200
refresh_pattern -i \.ram$ 10080 90% 43200
refresh_pattern -i \.avi$ 10080 90% 43200
refresh_pattern -i \.chtml$ 480 50% 22160
refresh_pattern -i \.thb$ 10080 90% 43200
refresh_pattern -i \.dcr$ 10080 90% 43200
refresh_pattern -i \.bmp$ 10080 90% 43200
refresh_pattern -i \.phtml$ 480 50% 22160
refresh_pattern -i \.mpg$ 10080 90% 43200
refresh_pattern -i \.pdf$ 10080 90% 43200
refresh_pattern -i \.art$ 10080 90% 43200
refresh_pattern -i \.swf$ 10080 90% 43200
refresh_pattern -i \.mp3$ 10080 90% 43200
refresh_pattern -i \.ra$ 10080 90% 43200
refresh_pattern -i \.spl$ 10080 90% 43200
refresh_pattern -i \.viv$ 10080 90% 43200
refresh_pattern -i \.doc$ 10080 90% 43200
refresh_pattern -i \.gz$ 10080 90% 43200
refresh_pattern -i \.Z$ 10080 90% 43200
refresh_pattern -i \.tgz$ 10080 90% 43200
refresh_pattern -i \.tar$ 10080 90% 43200
refresh_pattern -i \.vrm$ 10080 90% 43200
refresh_pattern -i \.vrml$ 10080 90% 43200
refresh_pattern -i \.aif$ 10080 90% 43200
refresh_pattern -i \.aifc$ 10080 90% 43200
refresh_pattern -i \.aiff$ 10080 90% 43200
refresh_pattern -i \.arj$ 10080 90% 43200
refresh_pattern -i \.c$ 10080 90% 43200
refresh_pattern -i \.cpt$ 10080 90% 43200
refresh_pattern -i \.dir$ 10080 90% 43200
refresh_pattern -i \.dxr$ 10080 90% 43200
refresh_pattern -i \.hqx$ 10080 90% 43200
refresh_pattern -i \.jpe$ 10080 90% 43200
refresh_pattern -i \.lha$ 10080 90% 43200
refresh_pattern -i \.lzh$ 10080 90% 43200
refresh_pattern -i \.midi$ 10080 90% 43200
refresh_pattern -i \.movie$ 10080 90% 43200
refresh_pattern -i \.mp2$ 10080 90% 43200
refresh_pattern -i \.mpe$ 10080 90% 43200
refresh_pattern -i \.mpeg$ 10080 90% 43200
refresh_pattern -i \.mpga$ 10080 90% 43200
refresh_pattern -i \.pl$ 10080 90% 43200
refresh_pattern -i \.ppt$ 10080 90% 43200
refresh_pattern -i \.ps$ 10080 90% 43200
refresh_pattern -i \.qt$ 10080 90% 43200
refresh_pattern -i \.qtm$ 10080 90% 43200
refresh_pattern -i \.ras$ 10080 90% 43200
refresh_pattern -i \.sea$ 10080 90% 43200
refresh_pattern -i \.sit$ 10080 90% 43200
refresh_pattern -i \.tif$ 10080 90% 43200
refresh_pattern -i \.tiff$ 10080 90% 43200
refresh_pattern -i \.snd$ 10080 90% 43200
refresh_pattern -i \.wrl$ 10080 90% 43200
refresh_pattern -i \.(swf|png|jpg|jpeg|bmp|tiff|png|gif) 43200 90% 129600 reload-into-ims override-lastmod
refresh_pattern -i \.(mov|mpg|mpeg|flv|avi|mp3|3gp|sis|wma) 43200 90% 129600 reload-into-ims override-lastmod
refresh_pattern -i \.(zip|rar|ace|bz|bz2|tar|gz|exe) 43200 90% 129600 reload-into-ims override-lastmod
refresh_pattern -i (.*html$|.*htm|.*shtml|.*aspx|.*asp) 43200 90% 1440 reload-into-ims override-lastmod
refresh_pattern ^http://*.friendster.com/.* 720 100% 10080
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080
refresh_pattern ^http://*.microsoft.*/.* 720 100% 10080
refresh_pattern ^http://*.live.*/.* 720 100% 10080
refresh_pattern ^http://*.msn.*/.* 720 100% 10080
refresh_pattern ^http://*.hotmail.*/.* 720 100% 10080
refresh_pattern ^http://*.inbox.*/.* 720 100% 10080
refresh_pattern ^http://*.multiply.*/.* 720 100% 7200
refresh_pattern ^http://*.yahoo.*/.* 720 100% 7200
refresh_pattern ^http://*.google.*/.* 720 100% 10080
refresh_pattern ^http://*.wikipedia.*/.* 720 80% 10080
refresh_pattern ^http://*.lycos.*/.* 720 80% 10080
refresh_pattern ^http://*.blogspot.*/.* 720 80% 10080
refresh_pattern ^http://*.wordpress.*/.* 720 80% 10080
refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800
refresh_pattern ^http://*.telkom.*/.* 720 90% 2880
refresh_pattern ^http://*.plasa.*/.* 720 90% 2880
refresh_pattern ^http://*.bhinneka.*/.* 720 90% 2880
refresh_pattern ^http://*.fastncheap.*/.* 720 90% 2880
refresh_pattern ^http://*.glodokshop.*/.* 720 90% 2880
refresh_pattern ^http://*.blogger.*/.* 720 90% 2880
refresh_pattern ^http://*.detik.*/.* 720 90% 2880
refresh_pattern ^http://*.astaga.*/.* 720 90% 2880
refresh_pattern ^http://*.okezone.*/.* 720 90% 2880
refresh_pattern ^http://*.google.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*korea.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.akamai.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.windowsmedia.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.googlesyndication.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.plasa.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.telkom.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://www.friendster.com/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.yahoo.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.yimg.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.gmail.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.detik.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 43200 90% 129600 reload-into-ims override-expire
refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod



#---------------------------------------------------------------#
# 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 to_localhost dst 127.0.0.0/8
acl user src 192.168.0.0/24
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

#-------------------------------------------------#
# TCP Outgoing_tos 0x30 localnet
#-------------------------------------------------#
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
Find all posts by this user
Quote this message in a reply
01-01-2011, 04:10 PM
Post: #2
supermenganteng Offline
SPA Holic
********
Jendral Team
Posts: 1,961
Joined: Jun 2010
Reputation: -188
RE: [Help] Kurang Dimana config ane ini om....?
Misal kita mau membatasi besar file yang boleh di download

Misalnya tidak boleh download dengan fle ukuran 650MB

nte coba tambahin tag reply_body_max_size

Quote:acl download url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .tar .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .msi .mp4

reply_body_max_size 6500000000 allow download
Find all posts by this user
Quote this message in a reply
01-01-2011, 05:33 PM
Post: #3
boegiel Offline
./Devilz 1st Cadet
Posts: 5
Joined: Dec 2010
Reputation: 0
RE: [Help] Kurang Dimana config ane ini om....?
klo itu kan buat memblock download bukan om??klo maksud ane biar download nya jadi lama bisa di limit dari squid nggak om??soalnya di mikrotik ane..dah nggak jalan lagi rule limit downloadnya....dah capek otak atik 2 minggu ini..belum nemu2 juga solusinya...
mana lokasi ane nggak ada lagi yg bisa setinginnya....
Find all posts by this user
Quote this message in a reply
01-01-2011, 05:41 PM
Post: #4
supermenganteng Offline
SPA Holic
********
Jendral Team
Posts: 1,961
Joined: Jun 2010
Reputation: -188
RE: [Help] Kurang Dimana config ane ini om....?
(01-01-2011 05:33 PM)boegiel Wrote:  klo itu kan buat memblock download bukan om??klo maksud ane biar download nya jadi lama bisa di limit dari squid nggak om??soalnya di mikrotik ane..dah nggak jalan lagi rule limit downloadnya....dah capek otak atik 2 minggu ini..belum nemu2 juga solusinya...
mana lokasi ane nggak ada lagi yg bisa setinginnya....
coba ini om
Misalnya badwidth yang tersedia 256kbps,terus pas download bisa rata-rata 30KBps.

jadi kalau download dengan ukuran dibawah 1MB tidak ada pembatasan kecepatan kalau diatas 1MB dibatasi dengan kecepatan 10 byte / detik

Quote:# Filter Download
acl download url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .tar .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .msi .mp4

# dibuat 2 aturan
delay_pools 2

# aturan 1, tidak ada pembatasan
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1

# aturan 2, setelah download 2048000 bytes mk download menjadi 10000 bytes/s
delay_class 2 2
delay_parameters 2 -1/2048000 10000/2049000

delay_access 2 allow download
delay_access 2 deny all
delay_access 1 deny download
delay_access 1 allow all

moga membantu om
Find all posts by this user
Quote this message in a reply
01-01-2011, 05:48 PM
Post: #5
badwolves1986 [RJ] Offline
Staf Registrasi DIC
RJ
Posts: 2,881
Joined: Oct 2010
Reputation: 91
RE: [Help] Kurang Dimana config ane ini om....?
waduh maaf bang gak ngerti maen mikrotik,..... mewekmewekdead
Find all posts by this user
Quote this message in a reply
01-01-2011, 05:57 PM
Post: #6
chaer.newbie Offline
--------------------------
*****
Dewa
Posts: 5,275
Joined: Dec 2009
Reputation: 184
RE: [Help] Kurang Dimana config ane ini om....?
nah tuh pake cara yang punya si petimati, pake delaypool ,
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Help]Need Squid Config untuk warnet boegiel 3 3,091 05-06-2011 10:06 PM
Last Post: Xcodehp

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-23-2013, 12:26 AM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE