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

squid.conf for Squid 3.x.x

Home General Computer Multimedia Business Lounge

Pages (3): 1 2 3 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
squid.conf for Squid 3.x.x
12-31-2011, 10:47 AM
Post: #1
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
squid.conf for Squid 3.x.x
Code:
#######################
# HIGH PERFORMANCE SQUID 3.1.9
# Config date : 28 Desember 2011 by linuxer46
#######################

# ACCESS CONTROLS
# —————

acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost
acl all src
acl localnet src 192.168.1.0/24
acl localhost src 127.0.0.1
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
acl sslports port 443 563 81
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT

#============================================================$
# BLOCKING
#============================================================$
acl blacklist url_regex -i "/etc/squid3/sex"
acl sex dstdomain "/etc/squid3/domainsaru"
http_access deny blacklist
http_access deny sex

#filter url yang akan diblokir
#acl badurl dstdomain "/etc/squid3/socnet"
#deny_info http://google.co.id badurl
#setting waktu akses
#acl pagi time SMTWHA 09:00-11:00
#acl sore time SMTWHA 14:00-16:00
#setting tolak akses sesuai settingan waktu untuk domain yang ada di file
#/etc/squid/social.network
#http_access deny pagi badurl
#http_access deny sore badurl

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
http_access allow localhost
http_access allow localnet
http_access deny all


#==============================================================================$
# DELAY POOL PARAMETERS
#==============================================================================$

# Filter Download
#acl download url_regex -i .exe .flv .mp3 .rar .wmv .avi .mpeg .mpe .mpg .rm .iso .mkv .wmf .wma .3gp .7z .asf .m4a .m4v .mov .mp4 .mpa .mpe .msi .zip
# 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 75000 bytes/s
#delay_class 2 2
#delay_parameters 2 75000/2048000
#delay_parameters 2 50000/50000 50000/50000
#delay_access 2 allow download
#delay_access 2 deny all
#delay_access 1 deny download
#delay_access 1 allow all


acl multimedia url_regex -i .exe .flv .mp3 .rar .wma .wmv .avi .mpeg .mpe .mpg .rm .iso .mkv .wmf .wma .3gp .7z .asf .m4a .m4v .mov .mp4 .mpa .mpe .msi .zip .dat .cab
# Multimedia Audio
#acl multimedia url_regex -i \.aif$ \.rmi$ \.snd$ \.wav$ \.aifc$ \.aiff$ \.au$ \.mid$ \.midi$ \.mp3$ \.wma$ \.vqf$ \.aaf$ \.ogg$

# Multimedia Video
#acl multimedia url_regex -i \.asf$ \.x-flv$ \.mpe$ \.mpeg$ \.mpg$ \.mpv2$ \.avi$ \.m1v$ \.mp2$\.mp2v$ \.mpa$ \.flv$ \.wmv$ \.dat$ \.mkv$ \.div$ \.divx$ \.ac3$ \.dts$ \.vob$ \.dvr-ms$ \.mp4$ \.m2v$ \.m4v$ \.m2ts$ \.bup$ \.3gpp$ \.3g2$ \.3gp2$ \.vro$ \.rm$ \.3gp$ \.ram$ \.raw$ \.qt$ \.mov$ \.svcd$ \.xdiv$ \.3mm$ \.aep$ \.ajp$ \.amv$ \.avs$ \.d2v$ \.d3v$ \.dmb$ \.dxr$ \.amx$ \.arf$ \.asf$ \.dvx$ \.f4v$ \.dv$ \.bsf$ \.rmvb$ \.rv$

# Gambar
#acl multimedia url_regex -i \.srf$ \.hdf$ \.wbmp$ \.wmf$ \.x3f$ \.xbm$ \.xpm$ \.cr2$ \.crw$ \.dcr$ \.tga$\.djvu$\.emf$ \.fpx$\.icl$ \.icn$ \.plp$ \.ppm$ \.raf$ \.ras$ \.raw$ \.mrw$ \.nef$ \.orf$ \.pbm$ \.pcd$ \.pef$ \.pgm$ \.rs$

# Program
#acl multimedia url_regex -i \.rpm$ \.bin$ \.dmg$ \.exe$ \.msi$ \.cab$

# Kompresi
#acl multimedia url_regex -i \.ace$ \.arj$ \.bzip2$ \.gz$ \.jar$ \.tgz$ \.uue$ \.iso$ \.7-zip$ \.rar$ \.alz$ \.nrg$ \.zip$ \.cab$ \.gzip$ \.lzh$ \.lzw$ \.tar$ \.tbz$

delay_pools 1
delay_class 1 1
delay_parameters 1 50000/1000000
delay_access 1 allow multimedia
delay_access 1 deny ALL


# NETWORK OPTIONS
# —————

http_port 8080 transparent

# OPTIONS WHICH AFFECT THE CACHE SIZE
# ———————————–

cache_mem 6 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
maximum_object_size 128000 KB
cache_swap_low 98
cache_swap_high 99

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# —————————————

access_log /var/log/squid3/access.log
cache_dir aufs /cache 37500 64 256
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
logfile_rotate 5
log_ip_on_direct off
log_icp_queries off
buffered_logs off
#netdb_filename none
emulate_httpd_log on

# OPTIONS FOR TUNING THE CACHE
# —————————-

cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jp?g|ico|bmp|tiff?)$ 10080 95% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(rpm|cab|deb|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z|doc?|xls?|ppt?|pdf|nth|psd|sis)$ 10080 90% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(avi|iso|wav|mid|mp?|mpeg|mov|3gp|wm?|swf|flv|x-flv|axd)$ 43200 95% 432000 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js)$ 1440 75% 40320
refresh_pattern -i \.index.(html|htm)$ 0 75% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 1440 90% 10080

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100
store_avg_object_size 13 KB

# HTTP OPTIONS
# ————
vary_ignore_expire on

# ANONIMITY OPTIONS
# —————–

request_header_access From deny all
request_header_access Server deny all
request_header_access Link deny all
request_header_access Via deny all
request_header_access X-Forwarded-For deny all

# TIMEOUTS
# ——–

forward_timeout 240 second
connect_timeout 30 second
peer_connect_timeout 5 second
read_timeout 600 second
request_timeout 60 second
shutdown_lifetime 10 second

# ADMINISTRATIVE PARAMETERS
# ————————-

cache_mgr roby.novian46@gmail.com    
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname roby.novianto@admin

# DNS OPTIONS
# ———–

dns_timeout 10 seconds
dns_nameservers 203.130.193.74 202.134.0.155 8.8.8.8 61.247.0.8

# MISCELLANEOUS
# ————-

memory_pools off
client_db off
reload_into_ims on
coredump_dir /cache
pipeline_prefetch on
offline_mode off

#Marking ZPH (Zero Phinalty hit)
#zph_mode tos
#zph_local 0x30
#zph_parent 0
#zph_option 136

### END of CONFIGURATION ###

lebih simple dari punya ane yang sebelumnya,yang pake squid 2.7.x
tapi request HIT lebih tinggi yang ini
untuk ZPH harus ngepatch dulu,padahal ane baca katanya ZPH udah include k dlm core Squid sejak stable 2.7.x,gak taunya di 3.x.x gak support nohope
Visit this user's website Find all posts by this user
Quote this message in a reply
 Reputed by :  anko_kum4ru(+1) , ketek(+1)
12-31-2011, 12:31 PM
Post: #2
anko_kum4ru Offline
./b0k3p3r_4r34
****
Global Moderators
Posts: 1,456
Joined: Dec 2010
Reputation: 10
RE: squid.conf for Squid 3.x.x
ane jga pengen coba squid.. belajar
tar malem tak coba.. ________ ngacir
Visit this user's website Find all posts by this user
Quote this message in a reply
12-31-2011, 12:44 PM
Post: #3
singkong77 Offline
./Devilz 1st Cadet
Posts: 29
Joined: Dec 2010
Reputation: 1
RE: squid.conf for Squid 3.x.x
di squid 3.x emang fungsi zph yg lama masih bisa dipake oms?

#Marking ZPH (Zero Phinalty hit)
#zph_mode tos
#zph_local 0x30
#zph_parent 0
#zph_option 136


setau ane sih udah beda zphnya
Find all posts by this user
Quote this message in a reply
12-31-2011, 12:47 PM
Post: #4
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
RE: squid.conf for Squid 3.x.x
(12-31-2011 12:44 PM)singkong77 Wrote:  di squid 3.x emang fungsi zph yg lama masih bisa dipake oms?

#Marking ZPH (Zero Phinalty hit)
#zph_mode tos
#zph_local 0x30
#zph_parent 0
#zph_option 136


setau ane sih udah beda zphnya

kan ane udah bilang diatas,d patch lagi ketawa nohope
Visit this user's website Find all posts by this user
Quote this message in a reply
12-31-2011, 07:44 PM
Post: #5
civo Offline
./Panah Nanggala\.
**
Moderators
Posts: 2,115
Joined: Jan 2011
Reputation: 65
RE: squid.conf for Squid 3.x.x
squid wow love
uji coba ahhh....ngacir
Find all posts by this user
Quote this message in a reply
01-01-2012, 08:59 AM (This post was last modified: 01-01-2012 09:00 AM by Motaro Irhaby.)
Post: #6
Motaro Irhaby Offline
Administrator
*******
Administrators
Posts: 398
Joined: Sep 2011
Reputation: 96
RE: squid.conf for Squid 3.x.x
m4ster nya squid nie . ketawa
mantap dah .
cek kulkas ketawa
Find all posts by this user
Quote this message in a reply
01-02-2012, 08:14 AM
Post: #7
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
RE: squid.conf for Squid 3.x.x
(01-01-2012 08:59 AM)motaroirhaby Wrote:  m4ster nya squid nie . ketawa
mantap dah .
cek kulkas ketawa

atas ane m4sternya junOS ketawa
Visit this user's website Find all posts by this user
Quote this message in a reply
01-28-2012, 06:56 AM
Post: #8
herman Offline
./Devilz 1st Cadet
Posts: 1
Joined: Jan 2012
Reputation: 0
RE: squid.conf for Squid 3.x.x
mas bisa kirimkan tutorialnya gak untuk instal ubuntu server + squid ane masih baru dalam hal ini sebelumnya terima kasih .... email ane soehermantamboels@gmail.com
Find all posts by this user
Quote this message in a reply
01-28-2012, 07:54 AM
Post: #9
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
RE: squid.conf for Squid 3.x.x
(01-28-2012 06:56 AM)herman Wrote:  mas bisa kirimkan tutorialnya gak untuk instal ubuntu server + squid ane masih baru dalam hal ini sebelumnya terima kasih .... email ane soehermantamboels@gmail.com

wah,kok di PM om,belajar bareng aja d sini
Visit this user's website Find all posts by this user
Quote this message in a reply
02-10-2012, 05:33 PM
Post: #10
NCU Offline
./Devilz 1st Cadet
Posts: 7
Joined: Feb 2012
Reputation: 0
RE: squid.conf for Squid 3.x.x
Kalo buat manipulasi speedtest gmana ya? pinter
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »
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
  Meningkatkan Request hit squid chaer.newbie 16 2,459 03-26-2013 07:19 PM
Last Post: Jehuda
  squid.conf chaer.newbie 40 25,579 10-31-2012 11:03 AM
Last Post: neobix
Thumbs Down [Tutor] install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04 revanthem 13 4,543 10-19-2012 12:46 PM
Last Post: pandak
  Cara mengatasi TCP_MISS pada Squid Ubuntu chibi 7 1,071 08-05-2012 06:48 AM
Last Post: ghosttransparentexceptnofixed
  [Tutor] squid anti iklan luthfi_dc 13 696 07-30-2012 12:14 PM
Last Post: sunafets.exe
  tuning performa squid luthfi_dc 3 441 07-30-2012 12:11 PM
Last Post: luthfi_dc
  [Ask] Caching Squid easy2study 7 1,226 06-11-2012 12:18 AM
Last Post: emin
  Squid Delay Pool wahyu_devilzc0de™ 12 5,855 03-27-2012 06:28 PM
Last Post: agam atjoeng
Exclamation [Ask] Setting Bandwidth dengan squid debian lenny ? fauzanrahman03 13 3,000 01-26-2012 05:18 PM
Last Post: Super Moderator
  Squid for Windows Super Moderator 16 6,282 11-26-2011 03:10 PM
Last Post: chaer.newbie

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 06-19-2013, 06:17 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