[ask]store_rewriter lusca

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

[ask]store_rewriter lusca

Postby rafdinal » 05 Nov 2011, 11:35

cache log aku gann:

011/11/05 11:28:27| Ready to serve requests.
2011/11/05 11:28:27| WARNING: store_rewriter #1 (FD 7) exited
2011/11/05 11:28:27| WARNING: store_rewriter #2 (FD 8) exited
2011/11/05 11:28:27| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
CPU Usage: 0.072 seconds = 0.012 user + 0.060 sys
Maximum Resident Size: 20672 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():


dimana salahnya gan?

makasih
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]store_rewriter lusca

Postby yudiarbi » 07 Nov 2011, 07:41

di bagian object sized in memory bos, itu memory penuh, jd gak mampu dia...
User avatar
nurri
Posts: 7
Joined: 07 Nov 2011, 13:28

Re: [ask]store_rewriter lusca

Postby nurri » 07 Nov 2011, 13:37

itu di memory proxy atau swap... mohon di jelasin mas warga baru ^_^
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]store_rewriter lusca

Postby yudiarbi » 07 Nov 2011, 14:31

itu di konfigurasi squidnya bro
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]store_rewriter lusca

Postby rafdinal » 07 Nov 2011, 17:29

@yudiarbi,,punya storeurl.pl bro,,kalau boleh di posting kesini...
User avatar
nurri
Posts: 7
Joined: 07 Nov 2011, 13:28

Re: [ask]store_rewriter lusca

Postby nurri » 08 Nov 2011, 19:31

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

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

#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
print $x . "http://" . $1 . $2 . "\n";

# compatibility for old cached get_video?video_id
} elsif (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 1024p HD itag=37, 720p HD itag=22
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?\&(itag=37|itag=22).*?\&(id=[a-zA-Z0-9]*)/) {
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . "&" . $3 . "\n";

# youtube 360p itag=34 ,480p itag=35 and others
} 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";

} 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";

#domain/path/.*/path/filename
} elsif (($u =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5,$6);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\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]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
print $x . "http://cdn." . $4 . $6 . "\n";

#for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
print $x . "http://cdn.yimg.com//" . $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";

#youjizz. We use only domain and filename
} elsif (($u =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\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";

# spicific extention
# } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
# @y = ($1,$2);
# $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
# print $x . "http://" . $y[0] . "." . $y[1] . "\n";

#generic http://variable.domain.com/path/filename. "ext" or "exte"
#http://cdn1-28.projectplaylist.com
#http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
@y = ($1,$2,$3,$4);
$y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

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

} else {
print $x . $_ . "\n";
}
}
User avatar
nurri
Posts: 7
Joined: 07 Nov 2011, 13:28

Re: [ask]store_rewriter lusca

Postby nurri » 08 Nov 2011, 19:34

mas yudiarbi tanya lagi... aq tidak bisa lihat log squid ku? apa yg salah
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]store_rewriter lusca

Postby yudiarbi » 09 Nov 2011, 12:43

iptablesnya gmn nurri?
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]store_rewriter lusca

Postby rafdinal » 10 Nov 2011, 12:26

@yudiarbi,,storeurl punya agan ini bisa gak HIT downlaod 4shared???
User avatar
sayed
Posts: 136
Joined: 21 Jul 2011, 16:19
Location: Lhokseumawe, Aceh
Contact:

Re: [ask]store_rewriter lusca

Postby sayed » 05 Feb 2013, 15:46

apakah ini udah jalan storeurl luscanya
mohon pencerahannya?

root@server:/etc/lusca# tail -f /var/log/lusca/store.log
1360053867.050 RELEASE -1 FFFFFFFF 0F5C0B27B9A99510BCF9994A97546847 304 1359557660 -1 1360162460 unknown -1/0 GET http://img2.blogblog.com/img/icon18_edit_allbkg.gif
1360053867.094 RELEASE -1 FFFFFFFF 67366FAB5C1857F6351E240BEC8146F8 304 1359557665 -1 1360162465 unknown -1/0 GET http://www.blogblog.com/1kt/awesomeinc/ ... _light.png
1360053867.317 RELEASE -1 FFFFFFFF 2D959F24BEF6BE6B70396B0F052CDCB3 304 1360053867 1359096420 1360053867 unknown -1/0 GET http://feedjit.com/flash/fj.swf
1360053867.488 RELEASE -1 FFFFFFFF 27ABB0D9BF5493E980BD7CD14E6FF393 200 1360053867 23349600 23349600 image/gif 43/43 GET http://e1.extreme-dm.com/s10.g?login=sp ... 50%2Cd.bmk
1360053867.511 RELEASE -1 FFFFFFFF DDE9599F4EB28A0B19448FB6ADE17047 304 1360053867 1077803767 1360140267 unknown -1/0 GET http://t1.extreme-dm.com/i.gif
1360053867.837 SWAPOUT 00 00000000 F68AD0F96B5B890867E0694D14EA8B15 200 1360053867 -1 1360053867 text/javascript -1/1755 GET http://feedjit.com/router/?ishd=0&w=tra ... 153&ww=160
1360053867.930 RELEASE -1 FFFFFFFF 4BCD39E58C8E6D3203B04FC6C3AF7074 200 1360053867 -1 1360053867 text/html 2638/2638 GET http://www.blogger.com/navbar.g?targetB ... rhj4w7GWvQ
1360053868.162 RELEASE -1 FFFFFFFF A479EB4C44767211622E0C77E79A89F2 304 1360053868 1359096412 1360053868 unknown -1/0 GET http://feedjit.com/wa/tf.html?r=521620496
1360053868.452 SWAPOUT 00 00000001 DC263F252FD5F4B17FCBB4B1DD0E7969 200 1359697967 1074714690 956144580 image/gif 35/35 GET http://www.google-analytics.com/__utm.g ... D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2F2008%2F08%2Ffatal-urlrewriter-helpers-are-crashing.html%3B&utmu=D%7E
1360053887.364 RELEASE -1 FFFFFFFF 1FB3E7822AE30FF1A9F7ECCC2A05F24C 200 1360053885 -1 375007920 text/xml 88/88 POST http://ubuntu-indonesia.com/forums/ubbthreads.php
1360053908.645 RELEASE -1 FFFFFFFF B5A8762C62145B483BBCC9D925994ABB 0 -1 -1 -1 unknown -1/0 GET http://csi.gstatic.com/csi?v=3&s=blogge ... 95,ol.3268
1360053908.875 RELEASE -1 FFFFFFFF 4133AD2E02E094E654584AECA561DADC 304 1360053908 -1 1360053908 unknown -1/0 GET http://andrewpakpahan.blogspot.com/2008 ... shing.html
1360053909.068 RELEASE -1 FFFFFFFF 6F5E7131AC30357BD1ABE953EEF4A71B 304 1359557661 -1 1391093661 unknown -1/0 GET http://www.blogger.com/static/v1/widget ... bundle.css
1360053909.145 RELEASE -1 FFFFFFFF 9662B128062B55628124286444FAE02E 304 1359557660 -1 1391093660 unknown -1/0 GET http://www.blogger.com/static/v1/widget ... widgets.js
1360053909.254 RELEASE -1 FFFFFFFF 92C21DD46B19E6896843264DE1E9238B 200 1360053909 1360053909 1360055709 text/css 72/72 GET http://www.blogger.com/dyn-css/authoriz ... 266154ef10
1360053909.472 RELEASE -1 FFFFFFFF 9DC0CF326F1D09324E3AD42B63DEB9EE 304 1360011865 -1 1360098265 unknown -1/0 GET http://pagead2.googlesyndication.com/pa ... top_exp.js
1360053909.513 RELEASE -1 FFFFFFFF C319D6E74CE983EE1E4BA27D750053BB 304 1359557664 -1 1360162464 unknown -1/0 GET http://img1.blogblog.com/img/icon18_email.gif
1360053909.523 RELEASE -1 FFFFFFFF 52DD17B3DC1241266BEC59D629058A86 304 1359557660 -1 1360162460 unknown -1/0 GET http://img2.blogblog.com/img/icon18_edit_allbkg.gif
1360053909.531 RELEASE -1 FFFFFFFF 54021825E8A5359D55FF74D8B575103E 304 1359557662 -1 1360162462 unknown -1/0 GET http://img1.blogblog.com/img/icon18_wrench_allbkg.png
1360053909.545 RELEASE -1 FFFFFFFF 6A2680E8F466850FFAC27BC96CE8D083 304 1359557665 -1 1360162465 unknown -1/0 GET http://www.blogblog.com/1kt/awesomeinc/ ... _light.png
1360053909.568 RELEASE -1 FFFFFFFF 0DC65A1139FB757C3332397E3C3A059A 304 1360053909 1359096475 1360053909 unknown -1/0 GET http://feedjit.com/serve/?bc=FFFFFF&tc= ... 699&ww=160
1360053909.923 RELEASE -1 FFFFFFFF 844723F45EAC5FEC4B27474694B74C56 200 1360053909 -1 1360053909 text/html 2640/2640 GET http://www.blogger.com/navbar.g?targetB ... rhj4w7GWvQ
1360053910.045 RELEASE -1 FFFFFFFF 9E9D859888B9399D8B78E061A87E2120 304 1360053909 1359096488 1360053909 unknown -1/0 GET http://feedjit.com/js/inj_tf.css
1360053910.304 RELEASE -1 FFFFFFFF F95194CF093D3F06170ED17904BAD40C 304 1360053910 1359096420 1360053910 unknown -1/0 GET http://feedjit.com/flash/fj.swf
1360053910.428 RELEASE -1 FFFFFFFF 7B8C08046A8556B9AC9F167C985719FA 304 1360053910 1077803767 1360140310 unknown -1/0 GET http://t1.extreme-dm.com/i.gif
1360053910.452 RELEASE -1 FFFFFFFF 7AC679B0AB0A019EC2FAC7695F62A8AF 200 1360053910 23349600 23349600 image/gif 43/43 GET http://e1.extreme-dm.com/s10.g?login=sp ... 50%2Cd.bmk
1360053910.830 SWAPOUT 00 00000002 947682F6F01506D8818C31A8EF83C880 200 1360053910 -1 1360053910 text/javascript -1/1759 GET http://feedjit.com/router/?ishd=0&w=tra ... 793&ww=160
1360053911.146 RELEASE -1 FFFFFFFF 277552AED9E16AFB16C0A8B51327A541 304 1360053911 1359096412 1360053911 unknown -1/0 GET http://feedjit.com/wa/tf.html?r=521620496
1360053911.276 SWAPOUT 00 00000003 537A39D4F91B3F212866C981DDC196CC 200 1359697967 1074714690 956144580 image/gif 35/35 GET http://www.google-analytics.com/__utm.g ... D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2F2008%2F08%2Ffatal-urlrewriter-helpers-are-crashing.html%3B&utmu=D%7E
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [ask]store_rewriter lusca

Postby q_p » 05 Feb 2013, 17:33

Kayaknya sudah jalan itu mas. Bagaimana dengan access.log -nya mas ? Saya lebih prefer strore.log -nya di-disable saja u/ mengurangi beban squid/lusca.
User avatar
sayed
Posts: 136
Joined: 21 Jul 2011, 16:19
Location: Lhokseumawe, Aceh
Contact:

Re: [ask]store_rewriter lusca

Postby sayed » 07 Feb 2013, 02:17

access.log nya mas gada keluar tcp_hit
semua pada tcp_miss

kalo disable store.log bisa cuma kasi tanda pagar atau
cache_store_log /dev/null?
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [ask]store_rewriter lusca

Postby q_p » 07 Feb 2013, 05:27

sayed wrote:kalo disable store.log bisa cuma kasi tanda pagar atau
cache_store_log /dev/null?
yang

Code: Select all

cache_store_log /dev/null
Mas sayed ini ngikutin tut (refferensi) yang mana ? kalau ada link-nya, mungkin kita bisa bantu telusuri dari sana ... :)
User avatar
sayed
Posts: 136
Joined: 21 Jul 2011, 16:19
Location: Lhokseumawe, Aceh
Contact:

Re: [ask]store_rewriter lusca

Postby sayed » 07 Feb 2013, 15:29

itu cuma pemahaman saya mas
hehehe
User avatar
Aira
Posts: 70
Joined: 22 Mar 2012, 21:20

Re: [ask]store_rewriter lusca

Postby Aira » 27 Feb 2013, 02:39

Malam mas mau tanya kenapa ya youtube sekarang tidak bisa tercache lagi?
Saya perhatiin kuality nya berubah2 pertama 480p jalan sebentar jadi 360p jadi alhasil video youtube ga mau tercache?
Adakah solusinya

Ini squid.cof, tunning.conf dan storeurl.pl saya
squid.conf
http_port 3128 transparent
server_http11 on

pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid/
error_directory /usr/share/squid/errors/English
icon_directory /usr/share/squid/icons
mime_table /usr/share/squid/mime.conf

cache_mem 6 MB
maximum_object_size_in_memory 64 bytes
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA

minimum_object_size 0 KB
maximum_object_size 512 MB
cache_swap_low 90
cache_swap_high 95

cache_dir aufs /cache/cache1 66500 63 256
cache_dir aufs /cache/cache2 66500 63 256
cache_dir aufs /cache/cache2 66500 63 256

access_log daemon:/var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log none
store_dir_select_algorithm round-robin
logfile_daemon /usr/lib/squid/logfile-daemon
logfile_rotate 1

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 192.168.1.0/24 # sesuaikan dengan IP lokal kamu
acl localnet src 192.168.11.0/24 # sesuaikan dengan IP Hotspot
acl localnet src 192.168.7.0/24 # sesuaikan dengan IP Proxy

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 1025-65535 # unregistered ports
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 CONNECT method CONNECT
acl purge method PURGE
acl snmppublic snmp_community public

include /etc/squid/tunning.conf

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access allow localnet
http_access allow all
http_access deny all

icp_access allow localnet
icp_access deny all
icp_port 0

buffered_logs on

acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

forwarded_for off
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
httpd_suppress_version_string on

shutdown_lifetime 10 seconds

snmp_port 3401
snmp_access allow snmppublic all
dns_timeout 1 minutes

#dns_nameservers 8.8.8.8
#dns_testnames 127.0.0.1

fqdncache_size 16384
ipcache_size 16384
ipcache_low 97
ipcache_high 99
log_fqdn off
memory_pools off

maximum_single_addr_tries 2
retry_on_error on

icp_hit_stale on

strip_query_terms on

query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 0 seconds
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off

# -----------------------------------------------------------------------------
cache_mgr proxy.com
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.com
unique_hostname proxy
cachemgr_passwd none all

client_db on
max_filedescriptors 8192

#tcp_outgoing_tos 0x30 localnet
# -----------------------------------------------------------------------------
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136

# -----------------------------------------------------------------------------
#END
# -----------------------------------------------------------------------------


tunning.conf
# Caching Youtube
# -----------------------------------------------------------------------------
acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplayback\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplay\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/get_video\?
acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ www\.tube8\.com\/(.*)\/
acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .redtube.com .cdn.dailymotion.com
acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET

storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access deny videocache_deny_dom
storeurl_access allow videocache_allow_url
storeurl_access allow videocache_allow_dom
storeurl_access deny all

storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 7
storeurl_rewrite_concurrency 15
redirector_bypass on

# TAG: acl rewrite
# -----------------------------------------------------------------------------
#acl RW url_regex \/speedtest\/.*\.(jpg|txt|php).*
#url_rewrite_access allow RW
#url_rewrite_program /etc/squid/rewriter.pl

acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
acl speedtest_allow_dom dstdomain .speedtest.net
storeurl_access allow speedtest_allow_url
storeurl_access allow speedtest_allow_dom

acl webfaceboox dstdomain .facebook.com
http_access allow webfaceboox

acl youtube dstdomain .youtube.com
cache allow youtube

#acl ytrange url_regex ^.*youtube.com/videoplayback.*.*$
acl ytrange url_regex ^.*youtube.com/videoplayback.*range=.*$
http_access deny ytrange

acl DENYCACHE urlpath_regex \.(ini|ui|lst|inf|pak|ver|patch|md5|cfg|lst|list|rsc|log|conf|dbd|db)$
acl DENYCACHE urlpath_regex (notice.html|afs.dat|dat.asp|patchinfo.xml|version.list|iepngfix.htc|updates.txt|patchlist.txt)
acl DENYCACHE urlpath_regex (pointblank.css|login_form.css|form.css)$
acl DENYCACHE urlpath_regex (Loader|gamenotice|sources|captcha|notice|reset)
cache deny DENYCACHE

# -----------------------------------------------------------------------------
# TAG: Refresh Pattern
# -----------------------------------------------------------------------------
# 1 year = 525600 mins, 1 month = 43200 mins, 1 day = 1440
# -----------------------------------------------------------------------------

#youtube's videos - tambahan
# -----------------------------------------------------------------------------
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?|\.mp4?|\.vid?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?|\.mp4?|\.vid?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
refresh_pattern \.(ico|video-stats) 43200 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale

#antivirus
# -----------------------------------------------------------------------------
refresh_pattern avast.com.*\.vpx 40320 50% 161280 store-stale reload-into-ims
refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
refresh_pattern kaspersky.*\.avc$ 5259487 999999% 5259487 ignore-reload store-stale
refresh_pattern kaspersky 1440 50% 161280 ignore-no-cache store-stale
refresh_pattern mbamupdates.com.*\.ref 1440 50% 161280 reload-into-ims store-stale

refresh_pattern windowsupdate.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern download.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale

# facebook
# -----------------------------------------------------------------------------
refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale

# google
# -----------------------------------------------------------------------------
refresh_pattern ^.*safebrowsing.*google 43200 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 43200 999999% 43200 override-expire ignore-reload ignore-private store-stale negative-ttl=10080

# games facebook
refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.zynga.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.farmville.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.ninjasaga.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.mafiawars.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.crowdstar.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.popcap.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern (zynga|ninjasaga|mafiawars|cityville|farmville|crowdstar|spilcdn|agame|popcap)\.com/.* 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale

#ads
# -----------------------------------------------------------------------------
refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 2629742 20% 2629742 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=1440

#banner IIX
refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/ads(1|2|3).kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale

# -- refresh pattern for specific sites -- #
# -----------------------------------------------------------------------------
refresh_pattern (photobucket|pbsrc|flickr|yimg|ytimg|twimg|gravatar)\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern ^http:\/\/images|image|img|pics|openx|thumbs[0-9]\. 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern \.(akamaihd|edgecastcdn|spilcdn|zgncdn|(tw|y|yt)img)\.com.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern \.gstatic\.com/images\? 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern (gstatic|diggstatic)\.com/.* 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt|tbn)[0-9]?)\.google\.co(m|\.uk|\.id) 43200 999999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate ignore-no-store negative-ttl=10080 store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 2629742 999999% 2629742 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern \.speedtest/.* 43200 99999% 432000 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern galleries\.video(\?|sz) 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-must-revalidate ignore-private store-stale
refresh_pattern \.wikimapia\.org\/? 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern \.(rackcdn|spilcdn|zgncdn)\.com.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 43200 9999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern code.googlec.com.*(svn|download) 0 50% 1440 reload-into-ims
refresh_pattern \.etology\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 43200 999999% 43200 override-expire ignore-reload store-stale
refresh_pattern garena\.com 43200 999999% 43200 override-expire reload-into-ims store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 reload-into-ims override-expire ignore-private store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload override-expire store-stale

#sensitive site
# -----------------------------------------------------------------------------
refresh_pattern -i \.(sc-|dl-|ex-|mh-|dll|da-|iop) 0 5% 60 reload-into-ims
refresh_pattern -i \.(mst|Xtp)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (main.exe|update.exe|grandchase.exe|FSLauncher.exe|FreeStyle_Setup.exe|grandchase.exe|filelist.zip|autoupgrade.exe)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (UpdaterModifier.exe|FreeStyle.exe|PBLauncher.exe|update.exe|NewLauncher.exe|NewAvalon.exe|hon.exe.zip|cabal.exe)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (PointBlank.exe.zip|HSUpdate.exe.zip|PBConfig.exe.zip) 0 50% 1440 reload-into-ims
refresh_pattern -i (wks_avira-win32-en-pecl.info.gz|wks_avira10-win32-en-pecl.info.gz)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (setup.exe.gz|avscan.exe.gz|avguard.exe.gz|filelist.zip|AvaClient.exe) 0 50% 1440 reload-into-ims
refresh_pattern -i (livescore.com|goal.com|bobet) 0 50% 60 reload-into-ims

#IIX DOWNLOAD
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale ignore-auth

#general
# -----------------------------------------------------------------------------
refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 2629742 999999% 2629742 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-private ignore-must-revalidate store-stale
refresh_pattern \.(z(ip|[0-9]{2})|r(ar|[0-9]{2})|jar|bz2|gz|tar|rpm|vpu) 2629742 999999% 2629742 override-expire reload-into-ims ignore-no-cache ignore-private ignore-must-revalidate ignore-no-store store-stale
refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape) 2629742 999999% 2629742 override-expire reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-must-revalidate ignore-no-store store-stale
refresh_pattern \.(exe|msi|msp|msu|dmg|bin|xpi|iso|swf|mar|psf|cab) 2629742 999999% 2629742 override-expire reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-must-revalidate ignore-no-store store-stale
refresh_pattern \.(mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 2629742 999999% 2629742 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate ignore-no-store negative-ttl=0 store-stale

#All File
#refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
#refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
#refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
#refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
#refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale

### Objek-objek statis waktu peyimpanannya diperlama

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320


storeurl.pl
#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamp ... Discussion

$|=1;
while () {
@X = split;
$x = $X[0] . " ";


#facebook
if (m/^http\:\/\/.*(profile|video|photo).*\.ak\.fbcdn\.net(\/h(profile|video|photos)-ak-)(snc|mp4|3gp||ash|prn)[0-9]?(.*)/) {
print $x . "http://facebook.SQUIDINTERNAL" . $2 . "fb" . $5 . "\n";

#Speedtest
} elsif (m/^http\:\/\/.*\/speedtest\/(.*)\?.*/) {
print $x . "http://speedtest.SQUIDINTERNAL/speedtest/" . $1 . "\n";

#reverbnation
} elsif (m/^http:\/\/[a-z0-9]{4}\.reverbnation\.com\/.*\/([0-9]*).*/) {
print $x . "http://reverbnation.com.SQUIDINTERNAL/" . "$1" . "\n";

#BLOGSPOT
} elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
print $x . "http://blog-cdn." . $1 . "\n";

#http://lh6.ggpht.com/_pt7i0nbIOCY/Se...umb%5B1%5D.png
} elsif (m/^http:\/\/lh[3-6]?(.ggpht.com.*)/) {
print $x . "http://ggpht." . $1 . "\n";

#http://a2.twimg.com/profile_images/1...-bg_normal.jpg
} elsif (m/^http:\/\/a[0-5]?(.twimg.com.*)/) {
print $x . "http://cdn-twimg.com." . $1 . "\n";

#AVAST
} elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
print $x . "http://avast-cdn." . $1 . "\n";

#KAV
} elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
print $x . "http://kav-cdn." . $1 . "\n";

#AVG
} elsif (m/^http:\/\/update.avg.com/) {
print $x . "http://avg-cdn." . $1 . "\n";

#mediafire
} elsif (m/^http:\/\/199\.91\.15\d\.\d*\/\w{12}\/(\w*)\/(.*)/) {
print $x . "http://www.mediafire.com.SQUIDINTERNAL/" . $1 ."/" . $2 . "\n";

#fileserve
} elsif (m/^http:\/\/fs\w*\.fileserve\.com\/file\/(\w*)\/[\w-]*\.\/(.*)/) {
print $x . "http://www.fileserve.com.SQUIDINTERNAL/" . $1 . "./" . $2 . "\n";

#filesonic
} elsif (m/^http:\/\/s[0-9]*\.filesonic\.com\/download\/([0-9]*)\/(.*)/) {
print $x . "http://www.filesonic.com.SQUIDINTERNAL/" . $1 . "\n";

#4shared
} elsif (m/^http:\/\/[a-zA-Z]{2}\d*\.4shared\.com(:8080|)\/download\/(.*)\/(.*\..*)\?.*/) {
print $x . "http://www.4shared.com.SQUIDINTERNAL/download/$2\/$3\n";

#4shared preview
} elsif (m/^http:\/\/[a-zA-Z]{2}\d*\.4shared\.com(:8080|)\/img\/(\d*)\/\w*\/dlink__2Fdownload_2F(\w*)_3Ftsid_3D[\w-]*\/preview\.mp3\?sId=\w*/) {
print $x . "http://www.4shared.com.SQUIDINTERNAL/$2\n";

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

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

#http://hphotos-ash2.fbcdn.net/290503..._4168472_o.jpg
} elsif (m/^http:\/\/photos-ash[1-5]?(.fbcdn.net.*)/) {
print $x . "http://ash.photos" . $1 . "\n";

#http://a6.sphotos.ak.fbcdn.net/hphot..._1727268_n.jpg
#a5.sphotos.ak.fbcdn.ne
} elsif (m/^http:\/\/[a-z][0-9]?(.sphotos.ak.fbcdn.net.*)/) {
print $x . "http://cdn.photos" . $1 . "\n";

#http://cityvillefb0.static.zgncdn.co...15de72e2a4.png
} elsif (m/^http:\/\/cityvillefb[0-3]?(.static.zgncdn.com.*)/) {
print $x . "http://cityvillefb" . $1 . "\n";

#http://playerstatics1.poker.static.z...E0MjM3X24uanBn
} elsif (m/^http:\/\/playerstatics[1-9]?(.poker.static.zynga.com.*)/) {
print $x . "http://playerstatics.poker-zynga." . $1 . "\n";

#http://zynga4-a.akamaihd.net/zbar/ga...1891413359.png
} elsif (m/^http:\/\/zynga[1-9]?-a(.akamaihd.net.*)/) {
print $x . "http://zynga-akamaihd.net." . $1 . "\n";

#http://s2.ninja.game321.com/source/b...is134.s110.png
} elsif (m/^http:\/\/s[1-9]?(.ninja.game321.com.*)/) {
print $x . "http://ninja-game321." . $1 . "\n";

#http://i616.photobucket.com/albums/u...ATT00001-1.gif
} elsif (m/^http:\/\/i[1-9]{3}(.photobucket.com.*)/) {
print $x . "http://photobucket3." . $1 . "\n";

#http://i1221.photobucket.com/albums/.../tri7bet-s.gif
} elsif (m/^http:\/\/i[1-9]{4}(.photobucket.com.*)/) {
print $x . "http://photobucket." . $1 . "\n";

#static3.spilcdn.com/
} elsif (m/^http:\/\/static[1-9]?(.speelcdn.com.*)/) {
print $x . "http://speelcdn." . $1 . "\n";

#http://t1.gstatic.com
} elsif (m/^http:\/\/t[1-9]?(.gstatic.com.*)/) {
print $x . "http://cdn-gstatic.com." . $1 . "\n";

# Gravatar - Globally Recognized Avatars
} elsif (m/^http:\/\/[0-3]?(.gravatar.com.*)/) {
print $x . "http://cdn-gravatar." . $1 . "\n";

#http://s5.scribdassets.com/images/at...commercial.png
} elsif (m/^http:\/\/s[1-8]?(.scribdassets.com.*)/) {
print $x . "http://cdn-scribdassets." . $1 . "\n";

#AdultWebmasterNet.com
} elsif (m/^http:\/\/tc[0-9]?(.easythumbhost.com.*)/) {
print $x . "http://cdn-easythumbhost." . $1 . "\n";

#http://static7.spilcdn.com/tw/img/_/...ummy_small.png
} elsif (m/^http:\/\/static[1-7]?(.spilcdn.com.*)/) {
print $x . "http://spilcdn." . $1 . "\n";

#http://media5.picsearch.com/is
} elsif (m/^http:\/\/media[1-8]?(.picsearch.com.*)/) {
print $x . "http://cdn-picsearch." . $1 . "\n";

#http://lh3.googleusercontent.com/-z2...tlnDXuQ/03.png
} elsif (m/^http:\/\/lh[3-6]?(.googleusercontent.com.*)/) {
print $x . "http://googleusercontent." . $1 . "\n";

#http://i54.tinypic.com/2crkryu.jpg
} elsif (m/^http:\/\/i[0-9]{2}(.tinypic.com.*)/) {
print $x . "http://tinypic." . $1 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
print $x . "http://" . $1 . $2 . "\n";

#gstatic and/or wikimapia
} elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
print $x . "http://" . $1 . $2 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
print $x . "http://" . $1 . $2 . "\n";

# compatibility for old cached get_video?video_id
} elsif (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 1024p HD itag=37, 720p HD itag=22
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?\&(itag=37|itag=22).*?\&(id=[a-zA-Z0-9]*)/) {
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . "&" . $3 . "\n";

# youtube 360p itag=34 ,480p itag=35 and others
} 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";

#Untuk ALL Youtube ( range & non range )
#} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
# @itag = m/[&?](itag=[0-9]*)/;
# @id = m/[&?](id=[^\&]*)/;
# @range = m/[&?](range=[^\&\s\s1\s2]*)/;
# @begin = m/[&?](begin=[^\&\s\s1\s2]*)/;
# @redirect = m/[&?](redirect_counter=[^\&]*)/;
# print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range@begin@redirect\n";

#Untuk ALL Youtube ( range & non range )
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
@itag = m/[&?](itag=[0-9]*)/;
@id = m/[&?](id=[^\&]*)/;
@range = m/[&?](range=[^\&\s]*)/;
@begin = m/[&?](begin=[^\&\s]*)/;
@redirect = m/[&?](redirect_counter=[^\&]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range@begin@redirect\n";

#Google
} 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 (($X[1] =~ /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 (($X[1] =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

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

#domain/path/.*/path/filename
} elsif (($X[1] =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5,$6);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\n";

#4shared audio/video preview
} elsif (($u =~ /4shared/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(dlink__2Fdownload_2F([^\/-]+))([a-zA-Z0-9-]+)\/([^\/\?\&]*\.[^\/\?\&]{2,3})(\?.*)?$/)) {
@y = ($1,$2,$3,$4,$7);
$y[0] =~ s/[a-z]+([0-9]+)?/cdn./;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "/" . $y[4] . "\n";

#indowebster
} elsif (m/^http:\/\/(.*?)(\.jkt\.3d\.x\.indowebster.com)\/(.*?)\/([^\/\?\&]*)\.([^\/\?\&]{2,4})(\?.*?)$/) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-Z]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[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 (($X[1] =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
print $x . "http://cdn." . $4 . $6 . "\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";

#for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
print $x . "http://cdn.yimg.com/" . $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";

#youjizz. We use only domain and filename
} elsif (($X[1] =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#generic http://variable.domain.com/path/filename. "ext" or "exte" with or withour "? or %"
} elsif (m/^http:\/\/(.*)(\.[^\.\-]*?\..*?)\/(.*)\.([^\/\?\&]{2,4})((\?|\%).*)?$/) {
@y = ($1,$2,$3,$4);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|(.*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";

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

# spicific extention
# } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
# @y = ($1,$2);
# $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
# print $x . "http://" . $y[0] . "." . $y[1] . "\n";

#generic http://variable.domain.com/path/filename. "ext" or "exte"
#http://cdn1-28.projectplaylist.com
#http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
@y = ($1,$2,$3,$4);
$y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

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

} else {
print $x . $X[1] . "\n";
}
}


Kalo boleh minta di koreksi apa ada yang salah dengan settingan saya.
Sebelumnya terimakasih atas jawabannya
User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Re: [ask]store_rewriter lusca

Postby mallink » 27 Feb 2013, 04:23

root@server:/etc/init.d# squid -f /etc/squid/squid.conf -z
2013/02/27 04:17:02| parseConfigFile: squid.conf:144 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:145 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:146 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:147 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:148 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:149 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:150 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:151 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:154 unrecognized: '(get_video\?|videoplayback\?|videodownload\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:155 unrecognized: '(get_video\?|videoplayback\?id|videoplayback.*id|videodownlo ad\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:156 unrecognized: '\.(ico|video-stats)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:157 unrecognized: '\.etology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:158 unrecognized: 'galleries\.video(\?|sz)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:159 unrecognized: 'brazzers\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:160 unrecognized: '\.adtology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:161 unrecognized: '^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\. com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|ad vertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractiv e\.com|syndication\.com|media.fastclick.net).*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:162 unrecognized: '^.*safebrowsing.*google'
2013/02/27 04:17:02| parseConfigFile: squid.conf:163 unrecognized: '^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:164 unrecognized: 'ytimg\.com.*\.jpg'
2013/02/27 04:17:02| parseConfigFile: squid.conf:165 unrecognized: 'images\.friendster\.com.*\.(png|gif)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:166 unrecognized: 'garena\.com'
2013/02/27 04:17:02| parseConfigFile: squid.conf:167 unrecognized: 'photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:168 unrecognized: 'vid\.akm\.dailymotion\.com.*\.on2\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:169 unrecognized: 'mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:170 unrecognized: '^http:\/\/images|pics|thumbs[0-9]\.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:171 unrecognized: '^http:\/\/www.onemanga.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:172 unrecognized: '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])'
2013/02/27 04:17:02| parseConfigFile: squid.conf:175 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:176 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:177 unrecognized: 'static\.ak\.fbcdn\.net*\.(jpg|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:178 unrecognized: '^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:181 unrecognized: '^http:\/\/apps.facebook.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:182 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:183 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:184 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:185 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:186 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:187 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:190 unrecognized: '^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zi p|flv|wmv|3gp|mp(4|3)|exe|msi|zip)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:193 unrecognized: '\.rapidshare.*\/[0-9]*\/.*\/[^\/]*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:194 unrecognized: '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])'
2013/02/27 04:17:02| parseConfigFile: squid.conf:195 unrecognized: '(get_video\?|videoplayback\?|videodownload\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:196 unrecognized: '\.(ico|video-stats)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:197 unrecognized: '\.etology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:198 unrecognized: 'galleries\.video(\?|sz)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:199 unrecognized: 'brazzers\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:200 unrecognized: '\.adtology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:202 unrecognized: '^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:203 unrecognized: 'ytimg\.com.*\.(jpg|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:204 unrecognized: 'images\.friendster\.com.*\.(png|gif)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:205 unrecognized: 'garena\.com'
2013/02/27 04:17:02| parseConfigFile: squid.conf:206 unrecognized: 'photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:207 unrecognized: 'vid\.akm\.dailymotion\.com.*\.on2\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:208 unrecognized: '^http:\/\/images|pics|thumbs[0-9]\.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:209 unrecognized: '^http:\/\/www.onemanga.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:210 unrecognized: 'mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:211 unrecognized: '\.macromedia.com.*\.(z|exe|cab)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:214 unrecognized: '^.*safebrowsing.*google'
2013/02/27 04:17:02| parseConfigFile: squid.conf:215 unrecognized: '^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\. com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia \.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doublecl ick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:218 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:219 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:220 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:221 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:222 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:224 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:225 unrecognized: '^gopher:'
2013/02/27 04:17:02| parseConfigFile: squid.conf:226 unrecognized: '^ftp:'
2013/02/27 04:17:02| parseConfigFile: squid.conf:227 unrecognized: '.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:268 unrecognized: 'n_aiops_threads'
2013/02/27 04:17:02| parseConfigFile: squid.conf:269 unrecognized: 'load_check_stopen'
2013/02/27 04:17:02| parseConfigFile: squid.conf:270 unrecognized: 'load_check_stcreate'
2013/02/27 04:17:02| parseConfigFile: squid.conf:271 unrecognized: 'download_fastest_client_speed'
2013/02/27 04:17:02| ACL name 'all' not defined!
FATAL: Bungled (null) line 180: http_reply_access allow all
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
User avatar
amak
Posts: 24
Joined: 06 Aug 2012, 19:43
Location: Bojonegoro

Re: [ask]store_rewriter lusca

Postby amak » 08 Aug 2013, 12:21

mohon bantuan na master klo ini knp ya?

squid -NDd1

2013/08/08 12:18:46| WARNING: store_rewriter #1 (FD 6) exited
2013/08/08 12:18:46| WARNING: store_rewriter #2 (FD 8) exited
2013/08/08 12:18:46| WARNING: store_rewriter #3 (FD 9) exited
2013/08/08 12:18:46| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

Aborted (core dumped)
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [ask]store_rewriter lusca

Postby q_p » 08 Aug 2013, 21:23

amak wrote:mohon bantuan na master klo ini knp ya?

squid -NDd1

2013/08/08 12:18:46| WARNING: store_rewriter #1 (FD 6) exited
2013/08/08 12:18:46| WARNING: store_rewriter #2 (FD 8) exited
2013/08/08 12:18:46| WARNING: store_rewriter #3 (FD 9) exited
2013/08/08 12:18:46| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

Aborted (core dumped)

Code: Select all

chmod 0755 /etc/squid/*.pl
User avatar
RifqiJayanti
Posts: 1
Joined: 12 Mar 2014, 11:03

Re: [ask]store_rewriter lusca

Postby RifqiJayanti » 22 Oct 2014, 08:19

mohon bantuan para mastah
d proxy saya kalau akses google atau youtube yg keluar di log begini kenapa ya?

1413940704.357 222 192.168.1.108 TCP_MISS/200 871 POST http://clients1.google.com/ocsp - DIRECT/173.194.126.69 application/ocsp-response
User avatar
adriano
Posts: 28
Joined: 12 Oct 2014, 21:00

Re: [ask]store_rewriter lusca

Postby adriano » 23 Oct 2014, 13:40

RifqiJayanti wrote:mohon bantuan para mastah
d proxy saya kalau akses google atau youtube yg keluar di log begini kenapa ya?

1413940704.357 222 192.168.1.108 TCP_MISS/200 871 POST http://clients1.google.com/ocsp - DIRECT/173.194.126.69 application/ocsp-response

rugi banget si agan file cuman 871 byte gk ke cache ... :)

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 2 guests