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

squid.conf

Home General Computer Multimedia Business Lounge

Pages (5): « Previous 1 2 3 4 5 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
squid.conf
01-09-2012, 01:01 PM
Post: #31
wahyu_devilzc0de™ Offline
Rest In Peace
***
Posts: 1,573
Joined: Dec 2009
Reputation: 191
RE: squid.conf
passwd : wahyu

monggo, udah dari zaman gak enak, kalau ndak salah itu passwd. ketawa
Visit this user's website Find all posts by this user
Quote this message in a reply
01-09-2012, 03:37 PM
Post: #32
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
RE: squid.conf
(01-09-2012 01:01 PM)wahyu_devilcode Wrote:  passwd : wahyu

monggo, udah dari zaman gak enak, kalau ndak salah itu passwd. ketawa

sekedar info,itu squid punyamu yang jaman smk piss,gak HIT sama sekali,cuman bisa blocking aja cambuk
kebanyakan isi doang kyknya _____________ngacir
Visit this user's website Find all posts by this user
Quote this message in a reply
01-18-2012, 10:44 AM
Post: #33
jimba Offline
./Devilz 1st Cadet
Posts: 21
Joined: Jul 2010
Reputation: 0
RE: squid.conf
(04-21-2010 03:48 PM)Rh354 Wrote:  yang squid diatas itu udah di patch dngan ajian jaran goyang seneng itu blm sama storeurl-ubuntu.pl cos dr maren ga' bs2 ketawa...nah klo sekarang yg pure squid ga' dipake patch..lsg gw compile dr sourcenya ketawa

ini settingannya

Code:
###########################################
#      HIGH PERFORMANCE SQUID 2.7
#     Config date : 21 April 2010
###########################################

# ACCESS CONTROLS
# -----------------------------------------------------------------------------

acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost
acl localnet src 10.0.0.0/8
acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/32
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
acl malware url_regex -i "/etc/squid/malware_block.txt"

http_access deny malware
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

# NETWORK OPTIONS
# -----------------------------------------------------------------------------
http_port 3128 transparent
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
#htcp_port 4827

icp_port 0
icp_access deny all
#icp_port 3130

# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------------------------------------------------

cache_mem 8 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir aufs /cache 4000 10 256
maximum_object_size 128000 KB
cache_swap_low 90
cache_swap_high 95
update_headers off

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -----------------------------------------------------------------------------

access_log /cache/access.log
#access_log none
cache_log /cache/cache.log
#cache_log /dev/null
cache_store_log none
logfile_rotate 5
log_ip_on_direct off
log_icp_queries off
buffered_logs off
netdb_filename none
client_db off
#pid_filename /var/run/squid.pid

# 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 98
store_avg_object_size 13 KB

# HTTP OPTIONS
# -----------------------------------------------------------------------------

server_http11 on
collapsed_forwarding on
vary_ignore_expire on
header_access From deny all
header_access Server deny all
header_access Link deny all
header_access Via deny all
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
persistent_request_timeout 60 second
client_lifetime 86400 second
half_closed_clients off
pconn_timeout 60 second
shutdown_lifetime 10 second

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

cache_mgr Rh354
cache_effective_user proxy

cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname Rh354

# DELAY POOL PARAMETERS
# -----------------------------------------------------------------------------

# ADVANCED NETWORKING OPTIONS
# -----------------------------------------------------------------------------

max_filedescriptors 2048

# DNS OPTIONS
# -----------------------------------------------------------------------------

check_hostnames off
dns_timeout 10 seconds
#DNS NAWALA
#dns_nameservers 180.131.144.144
#dns_nameservers 180.131.144.145
hosts_file /etc/hosts
ipcache_size 8192
ipcache_low 90
ipcache_high 95

# MISCELLANEOUS
# -----------------------------------------------------------------------------

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

###### END CONFIGURATION ###########

klo mo bagus lagi bs make adzapper buat blok iklan cm y korban resources dikit pinter
ga' perlu refresh pattern dengan domain cos ga' efektif pinter


ini storeurl-ubuntu.pl gw (lanjutan dr squid.conf yg dipatch ajian jaran goyang diatas)

Code:
#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# Updates at http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion
$|=1;
while (<>) {
    @X = split;
#    $X[1] =~ s/&sig=.*//;
    $x = $X[0] . " ";
    $_ = $X[1];
    $u = $X[1];


            # compatibility for old cached get_video?video_id
if (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) {
    $z = $2; $z =~ s/video_id=/get_video?video_id=/;
    print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $z . "\n";

            # youtube HD itag=22
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?\&(itag=22).*?\&(id=[a-zA-Z0-9]*)/) {
    print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . "&" . $3 . "\n";

            # youtube Normal screen always HD itag 35, Normal screen never HD itag 34, itag=18 <--normal?
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?\&(itag=[0-9]*).*?\&(id=[a-zA-Z0-9]*)/) {
    print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $3 . "\n";

} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
    print $x . "http://www.google-analytics.com/__utm.gif\n";

            #Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
    $y = $3;$z = $2;
    for ($y) {
    s/pixel;.*/pixel/;
    s/activity;.*/activity/;
    s/(imgad[^&]*).*/\1/;
    s/;ord=[?0-9]*//;
    s/;&timestamp=[0-9]*//;
    s/[&?]correlator=[0-9]*//;
    s/&cookie=[^&]*//;
    s/&ga_hid=[^&]*//;
    s/&ga_vid=[^&]*//;
    s/&ga_sid=[^&]*//;
    # s/&prev_slotnames=[^&]*//
    # s/&u_his=[^&]*//;
    s/&dt=[^&]*//;
    s/&dtd=[^&]*//;
    s/&lmt=[^&]*//;
    s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
    s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
    s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
    s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
    s/[;&?]ord=[?0-9]*//;
    s/[;&]mpvid=[^&;]*//;
    s/&xpc=[^&]*//;
    # yieldmanager
    s/\?clickTag=[^&]*//;
    s/&u=[^&]*//;
    s/&slotname=[^&]*//;
    s/&page_slots=[^&]*//;
    }
    print $x . "http://" . $1 . $2 . $y . "\n";

            #cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
    print $x . "http://" . $1 . "/" . $2  . "\n";

            # spicific servers starts here....
} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
    print $x . "http://" . $1 . "\n";

            #cdn, varialble 1st path
} elsif (($u =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
    @y = ($1,$2,$4,$5);
    $y[0] =~ s/[a-z0-9]{2,5}/cdn./;
    print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

            #rapidshare
} elsif (($u =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
    print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($u =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
    print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

            #like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($u =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
    print $x . "http://cdn." . $3 . $5 . "\n";
            #...spicific servers end here.

            #photos-X.ak.fbcdn.net where X a-z
} elsif (m/^http:\/\/photos-[a-z].ak.fbcdn.net\/(.*)/) {
    print $x . "http://photos.ak.fbcdn.net/" . $1  . "\n";

            #general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
    print $x . "http://squid-cdn-url//" . $2  . "." . $3 . "\n";

            #for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
    print $x . "http://cdn.yimg.com/"  . $3 . "\n";

            #for yimg.com with &sig=
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*)/) {
    @y = ($1,$2);
    $y[0] =~ s/[a-z]+[0-9]+/cdn/;
    $y[1] =~ s/&sig=.*//;
    print $x . "http://" . $y[0] . ".yimg.com/"  . $y[1] . "\n";

            #generic http://variable.domain.com/path/filename."ext" or "exte" with or withour "?"
} elsif (m/^http:\/\/(.*)([^\.\-]*?\..*?)\/(.*)\.([^\/\?\&]{3,4})(\?.*)?$/) {
    @y = ($1,$2,$3,$4);
    $y[0] =~ s/(([a-zA-A-]+[0-9-]+)|(.*cdn.*)|(.*cache.*))/cdn/;
    print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

            # generic http://variable.domain.com/...
} elsif (m/^http:\/\/(([A-Za-z]+[0-9-]+)*?|.*cdn.*|.*cache.*)\.(.*?)\.(.*?)\/(.*)$/) {
    print $x . "http://cdn." . $3 . "." . $4 . "/" . $5 .  "\n";

            # spicific extention that ends with ?
} elsif (m/^http:\/\/(.*?)\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|on2)\?(.*)/) {
    print $x . "http://" . $1 . "/" . $2  . "." . $3 . "\n";

            # all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
    print $x . "http://" . $1 . "/" . $2  . "\n";

} else {
    print $x . $_ . "\n";
}
}









kok aku jajal gak jalan ya mas ...... hehhehehehhe
Find all posts by this user
Quote this message in a reply
01-18-2012, 11:08 AM
Post: #34
wahyu_devilzc0de™ Offline
Rest In Peace
***
Posts: 1,573
Joined: Dec 2009
Reputation: 191
RE: squid.conf
(01-18-2012 10:44 AM)jimba Wrote:  kok aku jajal gak jalan ya mas ...... hehhehehehhe

kalau pingin dengan perl + tunningnya, ini ane tutz di blog scondary ane:
http://teardrop-diary.blogspot.com/2011/...4-lts.html

di sini ane tested pada ubuntu 10.04 running 100%, silakan di coba mas asik
Visit this user's website Find all posts by this user
Quote this message in a reply
10-10-2012, 06:17 AM
Post: #35
Hoorievoinc Offline
Banned
Posts: 1
Joined: Oct 2012
ipad cases
iphone 4S cases
Find all posts by this user
Quote this message in a reply
10-11-2012, 05:40 PM
Post: #36
BocahHacker Offline
./Devilz 1st Cadet
Posts: 7
Joined: Oct 2012
Reputation: 0
RE: squid.conf
Widih Thank's Infonya Om seneng
Find all posts by this user
Quote this message in a reply
10-31-2012, 10:29 AM
Post: #37
neobix Offline
./Devilz 1st Cadet
Posts: 6
Joined: Oct 2010
Reputation: 0
RE: squid.conf
mastah mastah ini makannya apa sih koq pada jago2 bener..???
blajarnya dimana sih mastah..??? mau donk aku diajarin ketawa
Find all posts by this user
Quote this message in a reply
10-31-2012, 10:42 AM
Post: #38
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
RE: squid.conf
(10-31-2012 10:29 AM)neobix Wrote:  om om ini makannya apa sih koq pada jago2 bener..???
blajarnya dimana sih om..??? mau donk aku diajarin ketawa

sini nungging dulu biar pinter detektif
Visit this user's website Find all posts by this user
Quote this message in a reply
10-31-2012, 10:53 AM
Post: #39
neobix Offline
./Devilz 1st Cadet
Posts: 6
Joined: Oct 2010
Reputation: 0
RE: squid.conf
belajarnya bijimana sih om, koq pake acara nungging...
ajarin donk om...
Find all posts by this user
Quote this message in a reply
10-31-2012, 10:57 AM
Post: #40
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 7,026
Joined: Jan 2010
Reputation: 237
RE: squid.conf
(10-31-2012 10:53 AM)neobix Wrote:  belajarnya bijimana sih om, koq pake acara nungging...
ajarin donk om...

lgsung prktek biar cepet bisa nohope
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (5): « Previous 1 2 3 4 5 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,472 03-26-2013 07:19 PM
Last Post: Jehuda
Thumbs Down [Tutor] install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04 revanthem 13 4,547 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 698 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
  squid.conf for Squid 3.x.x Super Moderator 24 3,358 07-26-2012 12:46 AM
Last Post: ghosttransparentexceptnofixed
  [Ask] Caching Squid easy2study 7 1,229 06-11-2012 12:18 AM
Last Post: emin
  Squid Delay Pool wahyu_devilzc0de™ 12 5,865 03-27-2012 06:28 PM
Last Post: agam atjoeng
Exclamation [Ask] Setting Bandwidth dengan squid debian lenny ? fauzanrahman03 13 3,002 01-26-2012 05:18 PM
Last Post: Super Moderator
  Squid for Windows Super Moderator 16 6,284 11-26-2011 03:10 PM
Last Post: chaer.newbie

Users Browsing

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