TCP_MISS/000 0 GET

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

TCP_MISS/000 0 GET

Postby bellec » 25 Jan 2014, 17:06

maaf dimana salahnya ini ? tidak ada yang hit stelah Inul proxy di Ubuntu Server 12.04 (64-bit AMD) dengan squid 2.7 STABLE9

Tampilkan
1390586131.642 168 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586131.792 123 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586131.963 161 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586132.098 119 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586132.261 147 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586132.432 151 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586132.612 158 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586132.783 164 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586132.932 138 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -
1390586133.075 124 192.168.1.3 TCP_MISS/000 0 GET http://www.republika.co.id/ - DIRECT/www.republika.co.id -


dan tapilan broser seperti ini
Tampilkan
While trying to retrieve the URL: http://www.detik.com/

The following error was encountered:

Unable to determine IP address from host name for http://www.detik.com

The dnsserver returned:

Timeout

This means that:

The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.

Your cache administrator is proxy.


kalau saya otak atik proxy (misalnya memberi seluruh permission root) kdang hit keluar, dan hitnya itu lumayan bagus, tapi setelah restart proxy balik seperti semula seperti diatas

untuk squid.conf

Tampilkan
http_port 3128 transparent
strip_query_terms off
cache_mem 8 MB
server_http11 on
maximum_object_size_in_memory 1 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
maximum_object_size 256 MB
cache_swap_low 90%
cache_swap_high 95%

cache_dir aufs /cache1 44500 64 256
cache_dir aufs /cache2 44500 64 256
cache_dir aufs /cache3 44500 64 256
cache_dir aufs /cache4 44500 64 256
cache_dir aufs /cache5 44500 64 256
cache_dir aufs /cache6 44500 64 256
cache_dir aufs /cache7 44500 64 256


access_log /var/log/squid/access.log
#cache_log /dev/null
cache_log /var/log/squid/cache.log
cache_store_log /dev/null

acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl purge method PURGE
acl CONNECT method CONNECT

acl advertise url_regex -i "/etc/squid/ads.block"
deny_info http://lusca.indolini.org/fill.png advertise
http_access deny advertise

acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$

acl bokep url_regex "/etc/squid/block.txt"
acl nocache_site url_regex -i "/etc/squid/nocache_site.txt"
cache deny nocache_site
acl all src 0.0.0.0/0
acl jaringan src 192.168.0.0/16
acl jaringan src 172.16.0.0/12
acl jaringan src 10.0.0.0/8

http_access deny bokep
http_access allow manager
http_access allow localhost
http_access allow purge localhost
http_access deny purge
http_access allow jaringan
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all

#acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
#cache deny thunder_lst
#cache_peer 172.16.10.1 parent 8080 0 proxy-only no-digest
#dead_peer_timeout 2 seconds
#cache_peer_access 172.16.10.1 allow thunder_lst
#cache_peer_access 172.16.10.1 deny all

#include /etc/squid/tc3.conf

#snmp_port 3401
#acl snmppublic snmp_community public
#snmp_access allow snmppublic all

#######################################
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com

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 \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.range\.[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 dontrewrite url_regex redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]*
acl getmethod method GET

storeurl_access allow videocache_allow_url
storeurl_access allow videocache_allow_dom

storeurl_access deny reddeny
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
storeurl_access deny all
storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 5
storeurl_rewrite_concurrency 10


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

via off
header_access From deny all
header_access Server deny all
header_access WWW-Authenticate deny all
header_access Link deny all
header_access Cache-Control deny all
header_access Proxy-Connection deny all
header_access X-Cache deny all
header_access X-Cache-Lookup deny all
header_access Via deny all
header_access Forwarded-For deny all
header_access X-Forwarded-For deny all
header_access Pragma deny all
header_access Keep-Alive deny all
forwarded_for off

max_filedescriptors 65536
fqdncache_size 4096
ipcache_low 98
ipcache_high 99
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
shutdown_lifetime 5 seconds
memory_pools off
buffered_logs off
log_icp_queries off
logfile_rotate 1
log_fqdn off
forwarded_for off
icp_hit_stale on
query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 2 minutes
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
##high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off
cache deny redirec
cache_mgr proxy
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy
unique_hostname proxy
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136


dan storeurl.pl

Tampilkan
#!/usr/bin/perl

# Facebook Group https://www.facebook.com/groups/Mikroti ... .Indonesia
# Forum ubuntu indonesia http://ubuntu-indonesia.com/

# mohon maaf lahir batin atas kesalahan yang telah diperbuat baik sengaja ataupun tidak
# storeurl ini hasil nyontek kepunyaan chudy ( chudy_fernandez@yahoo.com )
# link asalnya adalah
# https://code.google.com/p/pfsense-cache ... toreurl.pl

# ADA BAIKNYA BANDINGKAN JUGA, AGAR TAU APAKAH SAYA COPAS MENTAH MENTAH
# SAYA TIDAK ADA MAKSUD CARI NAFKAH DARI STOREURL INI, SAYA TIDAK MENERIMA JASA SETTING WARNET ATAUPUN MEMILIKI WARNET

# for ALL Youtube ( range & non range )
# acl youtube url_regex -i youtube.*(ptracking|stream_204|player_204|gen_204) .*$
# acl youtube url_regex -i (youtube|googlevideo)\.com\/(get_video|videoplayback|videoplay).*$
# storeurl_access allow youtube

# dikarenakan ada keterangan di squid config dokumentasi seperti berikut
# NOTE: when using StoreID refresh_pattern will apply to the StoreID
# returned from the helper and not the URL.
# untuk refresh pattern di squid-3.head gunakan refresh pattern berikut untuk seluruh yg ada di sini
# refresh_pattern -i storeurl://.*SQUIDINTERNAL 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
# dan untuk storeid maka replace '$x . "' dengan '$X[0] . " OK store-id=' tanpa tanda petik tunggal (') tentunya

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

# Poto Pesbuk

# acl dontrewrite url_regex -i s\-platform\.ak\.fbcdn\.net
# acl store_rewrite_list url_regex -i fbcdn.*net
# refresh_pattern -i fbcdn.*net 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale

# http://external.ak.fbcdn.net/safe_image ... .jpg&cfs=1
# http://static.ak.fbcdn.net/rsrc.php/v2/ ... wuI-UM.gif
# http://static.ak.fbcdn.net/rsrc.php/v2/ ... WSBAGQ.png
# http://s-platform.ak.fbcdn.net/www/app_ ... slogin.png
# hasil atas http://bycdn8-i.akamaihd.net/antwars_id ... slogin.png
# http://profile.ak.fbcdn.net/hprofile-ak ... 0094_q.jpg
if ($X[1] =~ m/^http\:\/\/[a-zA-Z0-9\-\_\.\%]*fbcdn[a-zA-Z0-9\-\_\.\%]*net\/safe\_image\.php\?(.*)/) {
print $x . "storeurl://fbcdn.SQUIDINTERNAL/" . $1 . "\n";

} elsif ($X[1] =~ m/^http\:\/\/[a-zA-Z0-9\-\_\.\%]*fbcdn[a-zA-Z0-9\-\_\.\%]*net\/rsrc\.php\/(.*)/) {
print $x . "storeurl://fbcdn.SQUIDINTERNAL/" . $1 . "\n";

} elsif ($X[1] =~ m/^http\:\/\/[a-zA-Z0-9\-\_\.\%]*fbcdn[a-zA-Z0-9\-\_\.\%]*net\/[a-zA-Z0-9\-\_\.\%]*\/(.*)/) {
print $x . "storeurl://fbcdn.SQUIDINTERNAL/" . $1 . "\n";

# Survey Google Menggelitik
# acl store_rewrite_list url_regex -i www\.google\-analytics\.com
# refresh_pattern -i google\-analytics\.com.*gif 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
# http://www.google-analytics.com/__utm.g ... *26201942)8(5!Detail)9(5!Handphone)&utmcs=UTF-8&utmsr=1366x768&utmvp=1350x641&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=11.2%20r202&utmdt=Sony%20Ericsson%20Xperia%20Arc%20S%20-%20Tokobagus.com&utmhid=1672766072&utmr=0&utmp=%2Fsony-ericsson%2Fsony-ericsson-xperia-arc-s-26201942.html%3Frelated%3D1&utmht=1374079248247&utmac=UA-5908313-1&utmcc=__utma%3D223717764.136894205.1374078869.1374078869.1374078869.1%3B%2B__utmz%3D223717764.1374078869.1.1.utmcsr%3Dgoogle%7Cutmccn%3D(organic)%7Cutmcmd%3Dorganic%7Cutmctr%3Dtoko%2520bagus%3B&utmu=6RAAAC%7E
} elsif ($X[1] =~ m/^http:\/\/www\.google-analytics\.com\/__utm.gif\?.*/) {
print $x . "storeurl://analytic.SQUIDINTERNAL/utm.gif\n";

# Gambar Video
# acl store_rewrite_list url_regex -i video\.google\.com\/ThumbnailServer
# refresh_pattern -i video\.google\.com\/ThumbnailServer 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
# http://video.google.com/ThumbnailServer ... oGvWdRMGy8
} elsif ($X[1] =~ m/^http:\/\/video.google.com\/ThumbnailServer.*/) {
@id = m/[&?](contentid=[a-zA-Z0-9\-\_\.\%]*)/;
@itag = m/[&?](itag=[a-zA-Z0-9\-\_\.\%]*)/;
@set = m/[&?](offsetms=[^\&\s]*)/;
print $x . "storeurl://Thumbnail.SQUIDINTERNAL/@id&@itag&@set\n";

# Video Youtube
# acl dontrewrite url_regex redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]*
# acl store_rewrite_list url_regex -i (youtube|google).*(videoplayback|liveplay)
# refresh_pattern -i (youtube|google).*(videoplayback|liveplay) 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
} elsif ($X[1] =~ m/^http(|s)\:\/\/.*youtube.*(ptracking|stream_204|player_204|gen_204).*(video_id|docid|v)\=([^\&\s]*).*/){
$vid = $4 ;
@cpn = m/[&?]cpn\=([^\&\s]*)/;
if (defined($vid )) {
$fn = "/var/log/squid/@cpn";
unless (-e $fn) {
open FH,">".$fn ;
print FH "$vid\n";
close FH;
}
}
print $x . $X[1] . "\n";

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
@itag = m/[&?](itag=[0-9]*)/;
@ids = m/[&?]id\=([^\&\s]*)/;
@mime = m/[&?](mime\=[^\&\s]*)/;
@cpn = m/[&?]cpn\=([^\&\s]*)/;
if (defined($cpn[0])) {
$fn = "/var/log/squid/@cpn";
if (-e $fn) {
open FH,";
chomp $id ;
close FH ;
} else {
$id = $ids[0] ;
}
} else {
$id = $ids[0] ;
}
@range = m/[&?](range=[^\&\s]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range@mime\n";

# Aplikasi Android
# acl dontrewrite url_regex redirector\.c\.android\.clients\.google\.com
# acl store_rewrite_list url_regex -i c\.android\.clients\.google\.com
# refresh_pattern -i c\.android\.clients\.google\.com 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
#http://android.clients.google.com/market/download/Download?packageName=com.android.vending&versionCode=80210006&ch=zen2II1nK1Sx2swLcCn16w&ssl=0&token=AOTCm0RgtgrM6lpRdy7yASnedjpL9BHCO4mYdpfWfe6XifwG17ezhCxOQYadJKIITyEzF6Z-ihOthW61UOjraurXqeyoS2VWd-GU-gWMGBs&downloadId=-6463850153931383785
#http://r3---sn-vgpvopq-jb3e.c.android.clients.google.com/market/GetBinary/com.android.vending/80210006/chzen2II1nK1Sx2swLcCn16w?ms=au&mt=1373980310&mv=m&expire=1374153183&ipbits=0&ip=0.0.0.0&cp=Snp1a2J1Q1g6MjI4MDkyNTE4ODIyNDUwMzUzMjM&sparams=expire,ipbits,ip,q:,cp&signature=BAF0CEF16EFEB23FA2CAB930E5ACDB983270B60D.5EBE4632F00487F6F5E9D7370762434C5AB9782D&key=am2
} elsif ($X[1] =~ m/^http:\/\/.*\.c\.android\.clients\.google\.com\/market\/GetBinary\/([a-zA-Z0-9\-\_\.\%]*)\/([0-9]*)\/.*/){
print $x . "storeurl://android-apps.SQUIDINTERNAL/$1/$2\n";
} elsif ($X[1] =~ m/^http:\/\/.*\.c\.android\.clients\.google\.com\/market\/GetBinary\/([a-zA-Z0-9\-\_\.\%]*)\/([0-9]*)\?.*/){
print $x . "storeurl://android-apps.SQUIDINTERNAL/$1/$2\n";

# APPS APPLE
# http://a1720.phobos.apple.com/us/r1000/ ... 2.dpkg.ipa
# refresh_pattern -i phobos\.apple\.com.*ipa 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
} elsif ($X[1] =~ m/^http:\/\/[a-zA-Z0-9\-\_\.\%]*phobos\.apple\.com\/.*\/([a-zA-Z0-9\-\_\.\%]*\.ipa)/) {
print $x . "storeurl://apple-apps.SQUIDINTERNAL/$1\n";

#Speedtest
# acl store_rewrite_list url_regex -i \/speedtest\/.*(jpg|txt|png|swf)
# refresh_pattern -i \/speedtest\/.*(jpg|txt|png|swf)) 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
} elsif ($X[1] =~ m/^http\:\/\/.*\/speedtest\/([a-zA-Z0-9\-\_\.\%]*\.(jpg|txt|png|swf))\?.*/) {
print $x . "storeurl://testspeed.SQUIDINTERNAL/" . $1 . "\n";

##################################################################################

## PORN Movies
#http://porn.im.d4628d22.1534715.x.xvideos.com/videos/oldmobile/8/2/b/xvideos.com_82b853581318116942fd41e0e8e4e805.3gp?e=1364299432&ri=1024&rs=85&h=64c9096e902f6a28fbaa18942a4034d4
# acl store_rewrite_list url_regex -i \.xvideos\.com\/.*(3gp|mpg|flv|mp4)
# refresh_pattern -i \.xvideos\.com\/.*(3gp|mpg|flv|mp4) 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
} elsif ($X[1] =~ m/^http:\/\/.*\.xvideos\.com\/.*\/([a-zA-Z0-9\-\_\.\%]*\.(3gp|mpg|flv|mp4))\?.*/){
print $x . "storeurl://xvideos.SQUIDINTERNAL/$1\n";

#http://154.46.32.87/key=5e2qYlZXbj6,end=1364305769/data=18446744072977812770/reftag=5412162/buffer=450K/speed=83200/1/xh/6/1815672_mom_gives_awesome_handjob.flv
# refresh_pattern -i \/xh.*(3gp|mpg|flv|mp4) 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
} elsif ($X[1] =~ m/^http:\/\/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\/.*\/xh.*\/([a-zA-Z0-9\-\_\.\%]*\.flv)/){
print $x . "storeurl://Xhamster.SQUIDINTERNAL/$1\n";

#http://213.174.156.23/key=kDRhok4XZMk,end=1364295197/reftag=5412166/buffer=1M/speed=170987/2/sp/6/repack117226.flv?start=0
} elsif ($X[1] =~ m/^http:\/\/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+.*\/([a-zA-Z0-9\-\_\.\%]*\.flv)\?start=0/){
print $x . "storeurl://Xhamster2.SQUIDINTERNAL/$1\n";

#http://cdn2b.youjizz.com/videos/4/e/7/e/2/4e7e2b0ce3036.mp4?2792b87c889e01ca3b1a331e03d5a0718c4b4e7d777eff211b92848d3a84590620e5
} elsif ($X[1] =~ m/^http:\/\/.*\.youjizz\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(mp4|flv|3gp))\?.*/){
print $x . "storeurl://YouJizz.SQUIDINTERNAL/$1\n";

#http://cdn1.public.keezmovies.phncdn.com/200810/30/327964/240P_383K_327964.mp4?sr=6000&int=6000000b&nvb=20130327103508&nva=20130327123508&hash=085da11d99756faa95822
} elsif ($X[1] =~ m/^http:\/\/[a-zA-Z0-9\-\_\.\%]*\.keezmovies[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(mp4|flv|3gp|mpg|wmv))\?.*/){
print $x . "storeurl://KeezMovies.SQUIDINTERNAL/$1\n";

#http://cdn1.public.tube8.com/201208/30/5436441/240P_195K_5436441.mp4?sr=3600&int=614400b&nvb=20130327104052&nva=20130327124052&hash=025102b4bdc2b07ec01fd
} elsif ($X[1] =~ m/^http:\/\/[a-zA-Z0-9\-\_\.\%]*\.tube8[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(mp4|flv|3gp|mpg|wmv))\?.*/) {
print $x . "storeurl://Tube8.SQUIDINTERNAL/$1\n";

#http://cdn1b.public.youporn.phncdn.com/200612/02/2865/480p_370k_2865/YouPorn%20-%20very%20good%202Girls%201guy%20hard.mp4?s=1364341242&e=1364427642&ri=600&rs=750&h=fe3d1bfda00e560af0e7fa8cfb60d7b2
} elsif ($X[1] =~ m/^http:\/\/[a-zA-Z0-9\-\_\.\%]*\.youporn[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(mp4|flv|3gp|mpg|wmv))\?.*/){
print $x . "storeurl://YouPorn.SQUIDINTERNAL/$1\n";

#http://cdn1.public.spankwire.phncdn.com/201302/02/709578/240P_300K_709578.mp4?nvb=20130327105920&nva=20130327125920&hash=0c73938b11cee1e872048
} elsif ($X[1] =~ m/^http:\/\/[a-zA-Z0-9\-\_\.\%]*\.spankwire[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(mp4|flv|3gp|mpg|wmv))\?.*/) {
print $x . "storeurl://SpankWire.SQUIDINTERNAL/$1\n";

#http://cdn1b.embed.pornhub.phncdn.com/videos/201102/17/159492/480P_357K_159492.mp4?rs=150&ri=1000&ip=85.112.95.26&s=1364387220&e=1364389020&h=305f8b4ba7973e62a340a2e61dc10868
} elsif ($X[1] =~ m/^http:\/\/[a-zA-Z0-9\-\_\.\%]*\.pornhub[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(mp4|flv|3gp|mpg|wmv))\?.*/){
print $x . "storeurl://PornHub.SQUIDINTERNAL/$1\n";

#http://v3-xh.clients.cdn13.com/data/1817003.flv?cdn_hash=22591a4c2c98690574bea214ac95618b&cdn_creation_time=1364375095&cdn_ttl=14400
} elsif ($X[1] =~ m/^http:\/\/[a-zA-Z0-9\-\_\.\%\/]*.*\/([a-zA-Z0-9\-\_\.]+\.(flv|mp3|mp4|3gp|wmv))\?.*cdn\_hash.*/){
print $x . "storeurl://media.SQUIDINTERNAL/$1\n";

###################################################################################

## FileHippo
#http://fs40.filehippo.com/7642/72359c8e25864e74b56e0e922850e803/OriginSetup.exe
#http://fs41.filehippo.com/7662/0c4cfb998b66473ba1292d6ed807c818/Firefox%20Setup%2020.0b6.exe
} elsif ($X[1] =~ m/^http:\/\/.*filehippo\.com\/.*\/([0-9a-zA-Z\%\.\_\-]+\.(exe|zip|cab|msi|mru|mri|bz2|gzip|tgz|rar|pdf))/){
$y=$1;
for ($y) {
s/%20//g;
}
print $x . "storeurl://FileHippo.SQUIDINTERNAL/$y\n";

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

#ytimg
} elsif ($X[1] =~ m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
print $x . "storeurl://ytimg.SQUIDINTERNAL" . $1 . "\n";

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

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

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

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


#Cache High Latency Ads
} elsif ($X[1] =~ 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 . "storeurl://" . $1 . $2 . $y . "\n";

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

} elsif ($X[1] =~ m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
print $x . "storeurl://" . $1 . "\n";

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

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

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

#domain/path/.*/path/filename
} elsif (($X[1] =~ /fucktube/) && ($X[1] =~ 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 . "storeurl://" . $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 (($X[1] =~ /tube8|pornhub|xvideos/) && ($X[1] =~ m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
print $x . "storeurl://cdn." . $4 . $6 . "\n";

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

} elsif ($X[1] =~ 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 ($X[1] =~ m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
print $x . "storeurl://" . $1 . "/" . $2 . "\n";

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


Mohon dibantu Mas letak kesalahan dimana ..
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: TCP_MISS/000 0 GET

Postby q_p » 25 Jan 2014, 22:12

DNS-nya (/etc/network/interfaces, /etc/resolv.conf dan squid.conf) coba anda periksa lagi
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: TCP_MISS/000 0 GET

Postby bellec » 25 Jan 2014, 22:43

alhamdllh sdh ada yang komen, sudah dari malam tadi menyesaikan tapi masih terkendala seperti ini juga
untuk /etc/network/interfaces ini mas,
#######################################
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.16.10.1
netmask 255.255.255.0
network 172.16.10.0
broadcast 172.16.10.255
gateway 172.16.10.254
dns-servers 192.168.1.1
#########################################

dan /etc/resolv.conf

##################################
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

nameserver 192.168.1.1

######################################
khusus untuk /etc/resolv.conf tidak bisa permanen tersimpan sebab kalau proxy mati/off akan hilang

untuk squid.conf ada diatas, tidak tau lagi dimana salahnya
nyerah huff...
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: TCP_MISS/000 0 GET

Postby q_p » 25 Jan 2014, 22:53

Ini menggunakan dns-lokal (192.168.1.1) ? coba ganti dengan dns-nya google (8.8.8.8 8.8.4.4).
Pada squid.config, tambahkan
[font:Courier New]dns_nameservers 8.8.8.8 8.8.4.4[/font]
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: TCP_MISS/000 0 GET

Postby bellec » 25 Jan 2014, 23:04

ok mas saya coba dulu ya mas, nanti saya infokan lagi :)
oh ya mas, bagaimana cara supaya nameserver di resolv.conf tersimpan permanen, ??
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: TCP_MISS/000 0 GET

Postby bellec » 25 Jan 2014, 23:27

ALHAMDULLILLAH mas selesai juga jadinya,
terimakasih banyak mas,
tapi satu lagi sebentar ini reques ke proxy terlalu banyak dan tiba2 mesin mati sendiri,
saya coba cek syslog seperti ini mas :

root@proxy:~# tail /var/log/syslog
Jan 25 23:22:26 proxy cron[1046]: (CRON) INFO (pidfile fd = 3)
Jan 25 23:22:26 proxy acpid: 1 rule loaded
Jan 25 23:22:26 proxy acpid: waiting for events: event logging is off
Jan 25 23:22:26 proxy cron[1065]: (CRON) STARTUP (fork ok)
Jan 25 23:22:26 proxy cron[1065]: (CRON) INFO (Running @reboot jobs)
Jan 25 23:22:27 proxy squid[1083]: Squid Parent: child process 1086 started
Jan 25 23:22:27 proxy squid[1083]: Squid Parent: child process 1086 exited with status 1
Jan 25 23:22:28 proxy kernel: [ 18.749078] ip_tables: (C) 2000-2006 Netfilter Core Team
Jan 25 23:22:28 proxy kernel: [ 18.759957] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Jan 25 23:22:30 proxy squid[1083]: Squid Parent: child process 1341 started
Jan 25 23:22:28 proxy kernel: [ 18.759957] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Jan 25 23:22:30 proxy squid[1083]: Squid Parent: child process 1341 started
Jan 25 23:24:01 proxy CRON[1574]: (root) CMD (/root/shutdown.sh # waktu 2 menit)
Jan 25 23:24:02 proxy CRON[1573]: (CRON) info (No MTA installed, discarding output)
Jan 25 23:26:01 proxy CRON[1579]: (root) CMD (/root/shutdown.sh # waktu 2 menit)
Jan 25 23:26:02 proxy CRON[1578]: (CRON) info (No MTA installed, discarding output)
Jan 25 23:28:01 proxy CRON[1585]: (root) CMD (/root/shutdown.sh # waktu 2 menit)
Jan 25 23:28:02 proxy CRON[1584]: (CRON) info (No MTA installed, discarding output)
Jan 25 23:30:01 proxy CRON[1604]: (root) CMD (/root/shutdown.sh # waktu 2 menit)
Jan 25 23:30:03 proxy CRON[1603]: (CRON) info (No MTA installed, discarding output)
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: TCP_MISS/000 0 GET

Postby q_p » 26 Jan 2014, 18:10

Mungkin ini perlu anda periksa lagi =

[font:Courier New]Jan 25 23:24:01 proxy CRON[1574]: (root) CMD (/root/shutdown.sh # waktu 2 menit)
Jan 25 23:24:02 proxy CRON[1573]: (CRON) info (No MTA installed, discarding output)[/font]
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: TCP_MISS/000 0 GET

Postby bellec » 28 Jan 2014, 23:01

Iya mas, tulisan sudah saya hapus (# waktu 2 menit)
jadi syslog masih ada

Tampilkan
Jan 28 22:46:01 proxy CRON[2965]: (root) CMD (/root/shutdown.sh)
Jan 28 22:46:01 proxy CRON[2964]: (CRON) info (No MTA installed, discarding output)
Jan 28 22:48:01 proxy CRON[2973]: (root) CMD (/root/shutdown.sh)
Jan 28 22:48:01 proxy CRON[2972]: (CRON) info (No MTA installed, discarding output)


masalah shutdown.sh sudah saya lakukan seperti diskusi here
tapi masih muncul

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 2 guests