[HOT POOLLING]Apakah Youtube Error Lagi ?

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Re: [HOT POOLLING]Apakah Youtube Error Lagi ?

Post by anbel » 24 Apr 2013, 22:00

Pragola_Pati wrote:Perintah2-nya sama, yang anda perlukan hanya masuk ke lokasi penyimpanan file tsb.

Code: Select all

# cd /path/lokasi_download_squid-3.HEAD-20121005-r12340.tar.gz-r12340.tar.gz
Contohnya kira2 begini ya mas?
# cd /path/D:mydownload_squid-3.HEAD-20121005-r12340.tar.gz

Klu salah mohon dikoreksi.

Tks.


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 22:07

^
@madara07
1. Hilangkan semua pagar pada opsi2 di atas
2. Set permission dan ownership file /var/log/squid/yt.log dengan CLI =

Code: Select all

# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log
@Anbel
Kok ada "D:" sih ? Pakai windows ya ? Kalau gitu pakai saja WinSCP, buat direktori baru dengan winSCP dan upload file tsb ke sana :)


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 22:11

Pragola_Pati wrote:^
@madara07
1. Hilangkan semua pagar pada opsi2 di atas
2. Set permission dan ownership file /var/log/squid/yt.log dengan CLI =

Code: Select all

# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log
siap guru akan saya laksanakan langsung ke tkp

:D


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 22:19

madara07 wrote:
Pragola_Pati wrote:^
@madara07
1. Hilangkan semua pagar pada opsi2 di atas
2. Set permission dan ownership file /var/log/squid/yt.log dengan CLI =

Code: Select all

# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log
siap guru akan saya laksanakan langsung ke tkp

:D
@mas pragola

ko setelah config permission dan ownershipnya yiautu :
# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log

proxynya gk mau konek

seolah - olah seperti mati

padahal dah di /etc/init.d/squid start
/etc/init.d/squid stop
/etc/init.d/squid restart

ini saya dalam keadaaan tanpa proxy, only mikrotik rb750, ( nat proxy ) sya matikan dulu untuk masuk kesini

jadi gmana mas pragola


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 24 Apr 2013, 22:23

@Anbel
Kok ada "D:" sih ? Pakai windows ya ? Kalau gitu pakai saja WinSCP, buat direktori baru dengan winSCP dan upload file tsb ke sana :) [/quote]

Oh begitu mas, harus upload ke servernya baru kita download dengan wget http://......, he he he harap maklum :)


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 22:30

^
@anbel
Kalau sudah di upload ke mesin proxy, tidak diperlukan "wget" lagi.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 22:31

madara07 wrote:
madara07 wrote:
Pragola_Pati wrote:^
@madara07
1. Hilangkan semua pagar pada opsi2 di atas
2. Set permission dan ownership file /var/log/squid/yt.log dengan CLI =

Code: Select all

# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log
siap guru akan saya laksanakan langsung ke tkp

:D
@mas pragola

ko setelah config permission dan ownershipnya yiautu :
# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log

proxynya gk mau konek

seolah - olah seperti mati

padahal dah di /etc/init.d/squid start
/etc/init.d/squid stop
/etc/init.d/squid restart

ini saya dalam keadaaan tanpa proxy, only mikrotik rb750, ( nat proxy ) sya matikan dulu untuk masuk kesini

jadi gmana mas pragola
@mas pragola

masih gk mau konek nih proxynya setelah di config permissionnya, tdi brusan sya squid -k reconfigure

tetap hasilnya


FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

padahal kn dah di di config mas ada yg salah atau gmana mas pragola


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 22:41

@mas pragola

saya masuk ke direktori yt.log yg sya buat tdi

di cd /var/log/squid/

ls -l

rm yt.log

hasilnnya bisa runnig kembali proxy saya mas pragola

jadi apa yg salah mas pragola, bukannya itu harus ada juga selain file yg banyak tdi, ????


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 23:03

^
squid.conf anda kopas di sini mas


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 23:09

Pragola_Pati wrote:^
squid.conf anda kopas di sini mas
siap guru master pragola

ini dia :

tadaaaaaaa

mohon koreksinya dari master squid server pragola y :D
[spoiler]#-----------------------------------#
# Proxy Server Version LUSCA_HEAD-r14809
# by zefry.devil@yahoo.com
# update 25 april 2013
#-----------------------------------#

#---------------------------------------------------------------#
# Port
#---------------------------------------------------------------#

http_port 3128 transparent
icp_port 3130
prefer_direct off

storeurl_rewrite_program /etc/squid/r25.pl
storeurl_rewrite_children 5
storeurl_rewrite_concurrency 10

#-----------------------------------------------------------------#
# Cache & Object
#------------------------------------------------------------------#
strip_query_terms off
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99

max_filedesc 8192

maximum_object_size 512
minimum_object_size 0 bytes
maximum_object_size_in_memory 32 bytes

ipcache_size 1024
ipcache_low 98
ipcache_high 99

fqdncache_size 1024
log_fqdn off
log_icp_queries off
half_closed_clients off
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
vary_ignore_expire on
pipeline_prefetch on
reload_into_ims on
forwarded_for off
via off
client_db on
client_persistent_connections off
server_persistent_connections off
icp_hit_stale on
query_icmp on
memory_pools off
negative_ttl 30 seconds
max_filedescriptors 65535

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
store_dir_select_algorithm round-robin
uri_whitespace strip
emulate_httpd_log off
shutdown_lifetime 10 seconds
logfile_rotate 1

#----------------------------------------------------------------#
# cache_dir
#----------------------------------------------------------------#
cache_dir aufs /squid/cache1 6000 32 256
cache_dir aufs /squid/cache2 6000 32 256
cache_dir aufs /squid/cache3 6000 32 256

#path log di bawah ini mohon di receck pada saat Anda build squid
cache_swap_log /var/log/squid/swap.state
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_log /dev/null
cache_store_log /dev/null
cache_store_log none
pid_filename /var/run/squid.pid
cache_swap_log /var/log/squid/swap.state
coredump_dir /var/spool/squid/
error_directory /usr/share/squid/errors/English
mime_table /etc/squid/mime.conf
logformat squid1 %{Referer}>h %ru
#access_log /var/log/squid/yt.log squid1 yutub

dns_nameservers /etc/resolv.conf

emulate_httpd_log off
hosts_file /etc/hosts
# half_closed_clients off
negative_ttl 1 minutes


#---------------------------------------------------------------#
# Rules: Safe Port
#---------------------------------------------------------------#

acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8


acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 20 21 221 70 210 1025-65535 631 10000 901 280 488 591 777 873 110 995 25 587 995 2095 2096 2082 2083 18901-18909 # default
acl manager proto cache_object
acl purge method PURGE
acl CONNECT method CONNECT

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 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 \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z|pkg)\?
acl store_rewrite_list_path urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z|pkg)$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?(.google.com.*)/)
acl store_rewrite_list_domain_CDN url_regex (cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/photos-[a-z]?(.ak.fbcdn.net.*)/)
acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]*
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/i[1-9]{3}(.photobucket.com.*)/)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/i[1-9]{4}(.photobucket.com.*)/)
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? \.doubleclick\.net.* yieldmanager cpxinteractive quantserve\.com
acl store_rewrite_list url_regex \.(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 url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl store_rewrite_list url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl store_rewrite_list url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl store_rewrite_list url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl store_rewrite_list url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl store_rewrite_list url_regex -i vid\.akm\.dailymotion\.com\/
acl store_rewrite_list url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl store_rewrite_list url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
acl store_rewrite_list url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl store_rewrite_list url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl store_rewrite_list url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl store_rewrite_list url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl store_rewrite_list url_regex -i \.break\.com\/(.*)\.(flv|mp4)

acl store_rewrite_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
acl store_rewrite_deny_dom dstdomain .download.youporn.com .static.blip.tv
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET

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

#upgrade_http0.9 deny shoutcast
#broken_vary_encoding allow apache

cache deny redirec

header_access Accept-Encoding deny all
header_access X-Forwarded-For deny all

storeurl_access deny reddeny
storeurl_access allow store_rewrite_list_domain
storeurl_access allow store_rewrite_list_path
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_allow_dom
storeurl_access deny store_rewrite_deny_dom
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access deny all

#--------------------------------------------------------------#
# Refresh Pattern
#--------------------------------------------------------------#

#FPUI
# refresh_pattern.conf
# r25

refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 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?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims 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 \.(ico|video-stats) 43200 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern \.etology\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*(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).* 43200 20% 43200 ignore-no-cache ignore-no-store ignore-private ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=10
refresh_pattern ^.*safebrowsing.*google 43200 999999% 43200 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 ignore-reload ignore-private store-stale negative-ttl=10080
refresh_pattern ytimg\.com.*\.jpg 43200 999999% 43200 ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 43200 999999% 43200 ignore-reload store-stale
refresh_pattern garena\.com 43200 999999% 43200 reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 43200 999999% 43200 ignore-no-cache override-lastmod store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 reload-into-ims ignore-private store-stale
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 43200 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern guru.avg.com/.*\.(bin) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern avast.com.*\.vps 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern avast.com.*\.vpx 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern (avgate|avira).*(idx|gz)$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky.*\.avc$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.nai.com/.*\.(gem|zip|mcs) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern ^http:\/\/liveupdate.symantecliveupdate.com.*\(zip) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload 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

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

refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.zynga.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.farmville.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.ninjasaga.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.mafiawars.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.crowdstar.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.popcap.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.cityville.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale

refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims ignore-reload 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 ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern kaskus.\co.id.*\.(jp(e?g|e|2)|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.kaskus.co.id.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
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 ignore-no-cache ignore-no-store store-stale ignore-auth

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-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-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-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-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-lastmod reload-into-ims store-stale

refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 10080 95% 241920 override-lastmod reload-into-ims store-stale
refresh_pattern . 180 95% 120960 override-lastmod reload-into-ims store-stale
#end of file


#---------------------------------------------------------------#
# HIERARCHY (BYPASS CGI)
#---------------------------------------------------------------#

hierarchy_stoplist cgi-bin ? .js .jsp
#acl QUERY urlpath_regex cgi-bin \? .js .jsp
#no_cache deny QUERY


#----------------------------------------------------------------#
# SNMP
#----------------------------------------------------------------#

#snmp_port 3401
#acl snmpsquid snmp_community public
#snmp_access allow snmpsquid localhost
#snmp_access deny all


#---------------------------------------------------------------#
# ALLOWED ACCESS FILTERING BLOCKING USER OR WEBSITE
#---------------------------------------------------------------#

acl proxyku src 192.168.0.0/24 ## Sesuaikan
acl satu src "/etc/satu"
acl block_satu url_regex "/etc/block_satu"
http_access allow satu !block_satu
http_access deny block_satu
http_access allow proxyku
http_access allow localhost
http_access allow all
http_reply_access allow all
icp_access allow proxyku
icp_access allow localhost
icp_access deny all
always_direct deny all

#---------------------------------------------------------------#
# Cache CGI & Administrative # http://[ip-proxy]/cgi-bin/cachemgr.cgi
#---------------------------------------------------------------#

cache_mgr zefry.devil@yahoo.com.sg
#cachemgr_passwd 123456 all ## sesuaikan
visible_hostname dns.hip-metal
cache_effective_user proxy
cache_effective_group proxy
cache_mgr FPUI
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 14

#---------------------------------------------------------------#
# Marking ZPH for b/w management
#---------------------------------------------------------------#

### Marking ZPH
zph_mode tos
zph_local 0x04
zph_parent 0
zph_option 136[/spoiler]


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 23:12

@mas pragola ini storeurl.pl sa copas dari forum ini jga yg r.25 by om sjw

ini dia
[spoiler]

Code: Select all

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

# http://www.facebook.com/stressss

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

        #facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|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";

        #ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
        print $x . "http://cdn.ytimg.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";

        #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";
        
        # for ALL Youtube ( range & non range )
        # first you need do this
        # install package dependencies "apt-get install libfile-readbackwards-perl"
        # add line below to your squid config and remove "#"
        
        # strip_query_terms off
        # acl yutub url_regex -i .*youtube\.com\/.*$
        # acl yutub url_regex -i .*youtu\.be\/.*$
        # logformat squid1 %{Referer}>h %ru
        # access_log /var/log/squid/yt.log squid1 yutub 
        # acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
        # acl redirec urlpath_regex -i .*&ir=1&rr=12
        # cache deny redirec 
        # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
        # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
        # storeurl_access deny reddeny

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
        @itag = m/[&?](itag=[0-9]*)/;
        @CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
        @IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
        $id = &GetID($CPN[0], $IDS[0]);
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\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";

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

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

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

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

                        #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."ex", "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";
}
}


sub GetID
{
$id = "";
use File::ReadBackwards;
my $lim = 200 ;
my $ref_log = File::ReadBackwards->new('/var/log/squid/yt.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/.*cpn=$CPN[0].*[&](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*/){
$id = $2;
last;
}
if ($line =~ m/.*youtube.*\/.*[&?](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $2;
last;
}
last if --$lim <= 0;
}
if ($id eq ""){
$id = $IDS[0];
} 
$ref_log->close();
return $id;
}
[/spoiler]
mohon koreksi apa dah sinkron dengan squid.conf nya


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 24 Apr 2013, 23:15

Pragola_Pati wrote:^
@anbel
Kalau sudah di upload ke mesin proxy, tidak diperlukan "wget" lagi.
Berarti langkahnya sbb :
1. buat directory di proxy (Squid3 Head)
2. buat permission dan rubah mode directorynya
3. dg winscp drag dan drop file ke directory tsb.
4. dg putty tinggal tar xzvf squid-3.HEAD...(file dlm winzip,
file perintahnya apa tetap menggunakan tar?)
Mas Pragola mohon dikoreksi


User avatar
reang
Posts: 1
Joined: 22 Apr 2013, 14:31

Post by reang » 25 Apr 2013, 00:37

salam kenal buat agan2 FUI .... ijin nyimak sekalian mau tanya ada yg udah bisa nghit belum untuk yutub 360p

klo buka yutub yg 360p selalu error


User avatar
mrxx
Posts: 13
Joined: 28 Mar 2013, 11:37

Post by mrxx » 25 Apr 2013, 01:52

reang wrote:salam kenal buat agan2 FUI .... ijin nyimak sekalian mau tanya ada yg udah bisa nghit belum untuk yutub 360p

klo buka yutub yg 360p selalu error


kayaknya masih aman terkendali berkat bantuan mr SJW dkk


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Apr 2013, 02:25

^
@madara07
Opsi2 yang dimaksud di atas, anda taruh saja pada urutan pertama squid.conf

@anbel
anbel wrote:
Pragola_Pati wrote:^
@anbel
Kalau sudah di upload ke mesin proxy, tidak diperlukan "wget" lagi.
Berarti langkahnya sbb :
1. buat directory di proxy (Squid3 Head)
2. buat permission dan rubah mode directorynya
3. dg winscp drag dan drop file ke directory tsb.
4. dg putty tinggal tar xzvf squid-3.HEAD...(file dlm winzip,
file perintahnya apa tetap menggunakan tar?)
Mas Pragola mohon dikoreksi
yang nomer dua tdk perlu, dan yang nomer 4 kalau file-nya berformat *.zip ya bukan dengan tar tapi dengan unzip.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 06:32

@mas pragola

opsi2 yg mana ya mas ?????????

yg ini kh ??????

file yg harus ada di squid.conf

ada # strip_query_terms off
ada # acl yutub url_regex -i .*youtube\.com\/.*$
ada # acl yutub url_regex -i .*youtu\.be\/.*$
ada # acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
ada # acl redirec urlpath_regex -i .*&ir=1&rr=12
ada # cache deny redirec
ada # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
ada # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
ada # storeurl_access deny reddeny
ada # logformat squid1 %{Referer}>h %ru

hanya ini yg error # access_log /var/log/squid/yt.log squid1 yutub
FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

itu di tarus di dalam squid.conf urutan paling atas mas pragola????

trus storeurl.pl-nya gmna ?????


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 06:33

@mas pragola

tdi mlm ketiduran mas hehhehehhehe

mohon koreksinya y mas pragola ditunggu

:D


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 06:39

@mas pragola

jadi intinya untuk config yg masih kurang 1 yaitu /var/log/squid/yt.log squid1 yutub, jika di config permissionnya
hasilnya

FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

itu intinya dari

file yg harus ada di squid.conf

ada # strip_query_terms off
ada # acl yutub url_regex -i .*youtube\.com\/.*$
ada # acl yutub url_regex -i .*youtu\.be\/.*$
ada # acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
ada # acl redirec urlpath_regex -i .*&ir=1&rr=12
ada # cache deny redirec
ada # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
ada # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
ada # storeurl_access deny reddeny
ada # logformat squid1 %{Referer}>h %ru

hanya ini yg error # access_log /var/log/squid/yt.log squid1 yutub
FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

itu ditaruh di urutan teratas didalam squid.conf-nya kh mas ?????


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 25 Apr 2013, 07:24

madara07 wrote:
madara07 wrote:
Pragola_Pati wrote:^
@madara07
1. Hilangkan semua pagar pada opsi2 di atas
2. Set permission dan ownership file /var/log/squid/yt.log dengan CLI =

Code: Select all

# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log
siap guru akan saya laksanakan langsung ke tkp

:D
@mas pragola

ko setelah config permission dan ownershipnya yiautu :
# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log

proxynya gk mau konek

seolah - olah seperti mati

padahal dah di /etc/init.d/squid start
/etc/init.d/squid stop
/etc/init.d/squid restart

ini saya dalam keadaaan tanpa proxy, only mikrotik rb750, ( nat proxy ) sya matikan dulu untuk masuk kesini

jadi gmana mas pragola
@madara07
Apakah anda yakin gan step dari Om Pragola Pati di atas sudah dicoba ?
Dan pastikan di sisi squid agan isinya seperti berikut (tanpa tanda #):

strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny

Jika ga bisa juga mohon info log atau error nya sekalian pastekan hasil dari ls -l /var/log/squid/


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 07:48

pluto01 wrote:
madara07 wrote:
madara07 wrote:
siap guru akan saya laksanakan langsung ke tkp

:D
@mas pragola

ko setelah config permission dan ownershipnya yiautu :
# touch /var/log/squid/yt.log
# chown proxy:proxy /var/log/squid/yt.log
# chmod 777 /var/log/squid/yt.log

proxynya gk mau konek

seolah - olah seperti mati

padahal dah di /etc/init.d/squid start
/etc/init.d/squid stop
/etc/init.d/squid restart

ini saya dalam keadaaan tanpa proxy, only mikrotik rb750, ( nat proxy ) sya matikan dulu untuk masuk kesini

jadi gmana mas pragola
@madara07
Apakah anda yakin gan step dari Om Pragola Pati di atas sudah dicoba ?
Dan pastikan di sisi squid agan isinya seperti berikut (tanpa tanda #):

strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny

Jika ga bisa juga mohon info log atau error nya sekalian pastekan hasil dari ls -l /var/log/squid/
udah bro pluto

tanda # itu sengaja saya buat di catan sya bro, sebenarnya tanda pagar itu kn fungsinya untuk mematikan fugnsionalitasnya

dari kesemuanya fitur diatas itu udah ada semua di dalam squid.conf sya, cuma ya mencar mencar, penjelasannya dari mas pragola katanya ditaruh di urutan tertyas, sy binung paling atas di dalam squid.confnya ??????


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 07:50

@bro pluto

Code: Select all

strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny
itu semua dah ada dan tidak dipagarin

masalahnya dari semua script diatas hanya

access_log /var/log/squid/yt.log squid1 yutub yg bermaslah

bermaslah ketika di squid -k reconfigure atau squid -k parse

hasilnya

FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

menurut bro pluto gmana sekalian nunggu penjelesaan dari mas pragola


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 07:53

@bro pluto

FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

nah yg bermalsah itu dikasi solusi sama mas pragola untuk di config permissionnya

setelah di config

mlaah hasilnya client tidak konek sama sekalai seperti tidak running transparentnya, jadi sya matikan ( nat proxy ) di mkt, tpi akhirnya saya hapus dengan periitnah rm /var/log/squid/yt.log

hasilnya bisa browsing keblai client

dan hanya cache image, untuk cache contetnt dynamic video youtubenya blm runnning

help me


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 08:01

@bro pluto

di dalam direktori /var/log/squid/ >>>>> sebelumnya dari di creatte
dan pemberian akses penuh

Code: Select all

touch /var/log/squid/yt.log
chown proxy:proxy /var/log/squid/yt.log
chmod 777 /var/log/squid/yt.log
hasilnya setelah di squid -k reconfigure

atau squid -k parse normal sehat squid lusca sya mas

masalahnya dampaknya di client tidak running, seolah2 tidak ter nat gitu, jadi sya hapus aja confignya rm yt.log didalam /var/log/squid/

hasilnya kembali runnig broi pluto


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 08:03

@bro pluto
@mas prgaola

help me apa yg sya laukan untuk config selanjutnya


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 08:07

@bro pluto
@mas pragola

apa ada yg kurang di dalam squid.conf sya????????

didalam squid.confnya udah sya sesuaikan dari page 38 squid.confnya mas pragola, tpi katanya mas pragola config opsi2 nya
disruh taruh paling atas di squid.confnya, maksudnya yg

Code: Select all

strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny
atau di dalam squdi.conf saya tidak ada script refferer.lognya ????


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 25 Apr 2013, 08:35

@madara07
Iya gan dicoba saja.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 08:47

pluto01 wrote:@madara07
Iya gan dicoba saja.
y udah ntr sya coba lgi mlm


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 08:48

@bro pluto

punya bro pluto dah fix semua cache youtuiubenya ????


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 25 Apr 2013, 09:20

@madara07
Sudah donk gan dan ini semua berkat storeurlnya OM SJW.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 09:28

@bro pluto

please koreksi squid.coinf q ma stroeurl q mas pluto


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 09:29

access_log /var/log/squid/yt.log squid1 yutub

itu mas pluto gk ada maslah ya ??


setelah di squid -k reconfigure


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 09:31

@bro pluto

intinya kn access_log /var/log/squid/yt.log squid1 yutub

jikaterjaid fatal error bungled kn harus config permissionnya
punya mas pluto config perrmission access_log /var/log/squid/yt.log squid1 yutub gk ada masalh

help me dunk di mana salah sya, please koreksi squid.conf sya


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 09:32

@bro pluto

mas pluto untuk script

Code: Select all

strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny
ditaruh paling atas jg kh di squid.conf-nya ???? seperti yg disarankan ma pragola ?????


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 09:33

@bro pluto

sya blm coba yg disruh mas pragola taruh paling atas squid.confnya

sya tanya ke mas pluto sebagai perbandingan, apakah script opsi yg dimaksu di squid.conf-nya mas pluto di taruh paling ururtan teratas jg ???


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 25 Apr 2013, 09:41

@madara07
Sebenarnya itu ga wajib hukumnya harus di atas gan tp karena susunan baris squid.confnya setiap mesin kita berbeda makanya disarankan diletak paling atas saja agar dibaca lebih dlu.
Harusnya jika agan membaca dengan teliti dan sesuaikan di squid agan storeurlnya OM SJW harusnya aman smua gan tidak ada masalah.
Dan jug squid confignya OM Pragola Pati bagus yg penting agan sesuaikan dengan kondisi jaringan agan dan juga perhatikan nama file dan directory letaknya dan juga permisionnya.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 09:46

@bro pluto

strourlnya yg mas pake yg mana ya klo boleh tau ???

di sya masalahnya terkhir di access_log /var/log/squid/yt.log squid1 yutub

yg error fatal bungled

access_log /var/log/squid/yt.log squid1 yutub wajib di permisson kan mas pluto ????
it gunanya untuk menampung log dari cache yotuub itu kn ????


oh ya ini strourlnya sya
[spoiler]

Code: Select all

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

# http://www.facebook.com/stressss

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

        #facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|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";

        #ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
        print $x . "http://cdn.ytimg.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";

        #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";
        
        # for ALL Youtube ( range & non range )
        # first you need do this
        # install package dependencies "apt-get install libfile-readbackwards-perl"
        # add line below to your squid config and remove "#"
        
        # strip_query_terms off
        # acl yutub url_regex -i .*youtube\.com\/.*$
        # acl yutub url_regex -i .*youtu\.be\/.*$
        # logformat squid1 %{Referer}>h %ru
        # access_log /var/log/squid/yt.log squid1 yutub 
        # acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
        # acl redirec urlpath_regex -i .*&ir=1&rr=12
        # cache deny redirec 
        # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
        # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
        # storeurl_access deny reddeny

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
        @itag = m/[&?](itag=[0-9]*)/;
        @CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
        @IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
        $id = &GetID($CPN[0], $IDS[0]);
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\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";

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

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

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

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

                        #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."ex", "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";
}
}


sub GetID
{
$id = "";
use File::ReadBackwards;
my $lim = 200 ;
my $ref_log = File::ReadBackwards->new('/var/log/squid/yt.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/.*cpn=$CPN[0].*[&](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*/){
$id = $2;
last;
}
if ($line =~ m/.*youtube.*\/.*[&?](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $2;
last;
}
last if --$lim <= 0;
}
if ($id eq ""){
$id = $IDS[0];
} 
$ref_log->close();
return $id;
}
[/spoiler]


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 09:49

@bro pluto

sya liat di pajewan link untuk menuju strourl.pl jika di klik dia menuju ke strourl.pl r27 sya takut pasang itu malah tidak runnig, yg saya pake skrng aja tdk runnning cache yotubenya

jadi yg membuat tidak runnnig cacahe yotube sya saat ini apakah storeurl sya yg diatas itu salah????? atau gmna, storeurl dah sya sesuaikan dengan squid.conf sya


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 10:00

@bro pluto

di dalaam strourl.pl

ada opsi-opsi yg harus ada di squid.conf jg, sy baru perhatikan ini dia

Code: Select all

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub 
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec 
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny
itu harunya #

Code: Select all

strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub 
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec 
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny
?????

apa itu yg membuat proxy sya tidak cahe contetnt dynamic, sertta error fatal bungled di access_log /var/log/squid/yt.log squid1 yutub
jika di config perrmiisoonya

mohon pencerahanhya mas pluto


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 25 Apr 2013, 10:00

@madara07
jujur w ga ada baca storeurle yg agan pastekan di atas tp jika agan ambil storeurlnya OM SJW di link yg w sertakan kemarin di post sebelumnya ataupun yg di pejwan harusnya jalan aman gan yg penting agan sesuaikan disquid.conf agan sesuai instruksi di storeurlnya.
Jika ga jalan mohon diinfo apakah saat prosesnya agan ada menemukan error dan errornya di pastekan dan pastikan semua stepnya sdh diikutin dgn baik.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 10:12

@bro pluto

ok gini mas pluto, sya mau tnaya intruksi di strourlnya itu yg mananya ya mas pluto ?????


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 25 Apr 2013, 10:25

@madara07
Dicoba baca dan perhatikan saja gan baik storeurlnya maupun yg squid.confnya dan dipastikan nama file directory dan permisionya sudah sesuai.
Dan lebih bagusnya sich dicoba pelajari dari dasarnya dlu gan agar lebih mudah saat menemukan kendala.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 10:29

@bro pluto

y udah lh mas ntr sya coba2 aja lgi mlm


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Apr 2013, 11:25

madara07 wrote:@bro pluto

y udah lh mas ntr sya coba2 aja lgi mlm
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@ mas Madara07 ....
sy mao berbagi pengalaman mas ....gini ..mas ....biasanya setting proxy squid/lusca itu mengikuti ..karakter jaringan ..... seperti di tmpt sy misalnya kalo pake acl src all ditmpt saya ga cocok ...cocoknya yg ada di halamn 38 forum ini .... yg 0.0.0.0/0.0.0.0 ..
Terus yg SSL_Port ditempat sy saya ganti jd Safe_Port dan dgn penyesuaian kelanjutannya tentunya mas ....terus yg never direct ditempat saya juga dikasih comment ....
Jadi mari sesuaikan dgn jaringan kita ,,,,,,OK


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 25 Apr 2013, 11:34

madara07 wrote:@bro pluto

di dalaam strourl.pl

ada opsi-opsi yg harus ada di squid.conf jg, sy baru perhatikan ini dia

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny


itu harunya # strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny


?????

apa itu yg membuat proxy sya tidak cahe contetnt dynamic, sertta error fatal bungled di access_log /var/log/squid/yt.log squid1 yutub
jika di config perrmiisoonya

mohon pencerahanhya mas pluto
error fatal bungled di access_log /var/log/squid/yt.log
solusinya
chown -R proxy:proxy /var/log/squid
chmod -R 777 /var/log/squid


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 13:25

SyaifuddinJW wrote:
madara07 wrote:@bro pluto

di dalaam strourl.pl

ada opsi-opsi yg harus ada di squid.conf jg, sy baru perhatikan ini dia

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny


itu harunya # strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny


?????

apa itu yg membuat proxy sya tidak cahe contetnt dynamic, sertta error fatal bungled di access_log /var/log/squid/yt.log squid1 yutub
jika di config perrmiisoonya

mohon pencerahanhya mas pluto
error fatal bungled di access_log /var/log/squid/yt.log
solusinya
chown -R proxy:proxy /var/log/squid
chmod -R 777 /var/log/squid
wah om sjw terima kasih arahannya

malam ini sya coba config lagi om sjw :D


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 13:36

@syaifuddin JW

mas

# for ALL Youtube ( range & non range )
# first you need do this
# install package dependencies "apt-get install libfile-readbackwards-perl"
# add line below to your squid config and remove "#"

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny

itu udah sya lampirkan di dalam squid conf tanpa pagar

kembali ke script storeurl.pl

dimana pada baris

my $ref_log = File::ReadBackwards->new('/var/log/squid/yt.log');

lalu script access_log /var/log/squid/yt.log squid1 yutub di squid.conf itu disamakan dengan script yg ada di strourl pada baris my $ref_log = File::ReadBackwards->new('/var/log/squid/yt.log');

????????????


mohon koreksinya, saat ini blm config, pas mlm ntr bru sya cb config mohon arahannya lgi ya om SJW


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 13:38

cah_clacap wrote:
madara07 wrote:@bro pluto

y udah lh mas ntr sya coba2 aja lgi mlm
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@ mas Madara07 ....
sy mao berbagi pengalaman mas ....gini ..mas ....biasanya setting proxy squid/lusca itu mengikuti ..karakter jaringan ..... seperti di tmpt sy misalnya kalo pake acl src all ditmpt saya ga cocok ...cocoknya yg ada di halamn 38 forum ini .... yg 0.0.0.0/0.0.0.0 ..
Terus yg SSL_Port ditempat sy saya ganti jd Safe_Port dan dgn penyesuaian kelanjutannya tentunya mas ....terus yg never direct ditempat saya juga dikasih comment ....
Jadi mari sesuaikan dgn jaringan kita ,,,,,,OK
terima kasih mas cah calacap

tpi permasalahannya bukan pada inti dari jaringan yg di nat, masalahnya dia blm mau cache contetn dynamic, terima kasih ya bro masukkkannnya


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 14:08

SyaifuddinJW wrote:
madara07 wrote:@bro pluto

di dalaam strourl.pl

ada opsi-opsi yg harus ada di squid.conf jg, sy baru perhatikan ini dia

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny


itu harunya # strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny


?????

apa itu yg membuat proxy sya tidak cahe contetnt dynamic, sertta error fatal bungled di access_log /var/log/squid/yt.log squid1 yutub
jika di config perrmiisoonya

mohon pencerahanhya mas pluto
error fatal bungled di access_log /var/log/squid/yt.log
solusinya
chown -R proxy:proxy /var/log/squid
chmod -R 777 /var/log/squid
@Syaifuuddin JW

sebelum ke 2 config diatas apa tidak perlu membuat

seperti ini
# touch /var/log/squid/yt.log squid1 yutub >>> sesuai squid.conf

atau

# touch /var/log/squid/yt.log >>> setelah config permissionnya langsung tidak running squidnya

mhn koreksi y mas


User avatar
sawitbahar
Posts: 41
Joined: 04 Apr 2013, 17:51
Location: jambi

Post by sawitbahar » 25 Apr 2013, 15:08

@madara07

mazz coba bagian acl nya di obok aja...

mana tahu selip d situ...


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 15:58

sawitbahar wrote:@madara07

mazz coba bagian acl nya di obok aja...

mana tahu selip d situ...
@sawitbar

ok mas akan sya cb, ni mau pulang dulu, mau langsung tes, mudah2an nyangkut hehhehheehe


User avatar
awwosj
Posts: 3
Joined: 21 Apr 2013, 15:43
Location: indonesia
Contact:

Post by awwosj » 25 Apr 2013, 16:40

sore mas,,, mau bertanya saya pake htproxy hikmah teknologi,,, nah di squid confnya ada config spt ini "storeurl_rewrite_program /usr/lib/squid/hikmah-teknologi.com" kl saya pake storeurl yang updatean di forum ini untuk mengatasi maslah youtube dan config diatas saya ganti jadi "storeurl_rewrite_program /etc/squid/r25.pl" dan saya jalankan proxy squidnya kok gak jalan ya mas? mohon petunjuk,, saya sudah ikutin tut mas di hl pertama tread ini,, dan tidak ada maslah dalam prosesnya,,,


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 17:10

@pragola
@all bro

proxy sya dah running tpi hasilnya masih missssss abisssss


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 17:53

@all bro

proxy sya dah running tpi hasillnya tetap miss
[spoiler]1384667043.311 68680 10.10.0.253 TCP_MISS/200 1782164 GET http://r7---sn-2uuxa3vh-jb3d.c.youtube. ... S1lLV19FUU
NONV9RRUFKOmNnaFpCSGVFdGdC&cpn=-ZX8Rsx70T4_NcmU&expire=1366909907&factor=1.25&fexp=927830%2C912516%2C910100%2C914023%2C902534%2C932000%2C932004%2C906383%2C904479%2C9020
00%2C901208%2C929903%2C925714%2C929119%2C931202%2C900821%2C900823%2C912518%2C911416%2C904476%2C908529%2C904830%2C930807%2C919373%2C930803%2C906836%2C929602%2C930101%2C9
00816%2C900824%2C912711%2C910075&id=o-AGolA7HYc4xy8HfSt7RF5mjQYecmr_YJjjyg92fa2ndB&ip=125.160.64.87&ipbits=8&itag=34&keepalive=yes&key=yt1&ms=au&mt=1366886963&mv=m&news
hard=yes&range=1781760-3563519&ratebypass=yes&signature=732F4BD940500C93F8F594B80726CC3A746667DC.766527E31265DCAE8025B41C7DFED489BC08832B&source=youtube&sparams=algorit
hm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&sver=3&upn=AH4FCeITFOM - DIRECT/118.98.111.18 video/x-flv
1384667069.329 59186 10.10.0.253 TCP_MISS/200 1782164 GET http://r7---sn-2uuxa3vh-jb3d.c.youtube. ... S1lLV19FUU
NONV9RRUFKOmNnaFpCSGVFdGdC&cpn=-ZX8Rsx70T4_NcmU&expire=1366909907&factor=1.25&fexp=927830%2C912516%2C910100%2C914023%2C902534%2C932000%2C932004%2C906383%2C904479%2C9020
00%2C901208%2C929903%2C925714%2C929119%2C931202%2C900821%2C900823%2C912518%2C911416%2C904476%2C908529%2C904830%2C930807%2C919373%2C930803%2C906836%2C929602%2C930101%2C9
00816%2C900824%2C912711%2C910075&id=o-AGolA7HYc4xy8HfSt7RF5mjQYecmr_YJjjyg92fa2ndB&ip=125.160.64.87&ipbits=8&itag=34&keepalive=yes&key=yt1&ms=au&mt=1366886963&mv=m&news
hard=yes&range=3563520-5345279&ratebypass=yes&signature=732F4BD940500C93F8F594B80726CC3A746667DC.766527E31265DCAE8025B41C7DFED489BC08832B&source=youtube&sparams=algorit
hm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&sver=3&upn=AH4FCeITFOM - DIRECT/118.98.111.18 video/x-flv
1384667072.284 2005 10.10.0.253 TCP_MISS/204 445 GET http://s.youtube.com/stream_204?plid=AA ... 2:PA,117.2
54:PL,120.351:PL&fexp=931202,912516,902534,912711,929602,919373,912518,906383,900816,925714,910100,900821,927830,900823,901208,904476,929119,932000,932004,906836,914023
,900824,929903,902000,908529,930803,930101,930807,911416,904479,910075,904830&el=detailpage&ns=yt&event=streamingstats&docid=oJTvi3PdnIg&bwm=120.351:4800767.000:116.412
&bh=120.351:41.067&scoville=1&df=120.351:20&fv=WIN%2010,1,102,64 - DIRECT/74.125.135.101 text/html[/spoiler]


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Apr 2013, 17:57

^
@awwosj
Menurut saya ada ada dua cara
1. Coba anda backUp dulu /usr/lib/squid/hikmah-teknologi.com, lalu anda buka file tsb, hapus semuanya dan ganti isinya dengan r25.pl. Jadi tanpa merubah squid.conf.
2. Dengan merubah squid.conf seperti dalam posting anda di atas, set permission dan ownership-nya file /etc/squid/r25.pl

Code: Select all

# chown proxy:proxy /etc/squid/r25.pl
# chmod 777 /etc/squid/r25.pl
@Madara07
Anda nikmati saja pencapaian anda saat ini, sambil mencermati trit ini. Banyak kok yang bisa dijadikan referensi :)


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 25 Apr 2013, 18:01

Pragola_Pati wrote:^
@awwosj
Menurut saya ada ada dua cara
1. Coba anda backUp dulu /usr/lib/squid/hikmah-teknologi.com, lalu anda buka file tsb, hapus semuanya dan ganti isinya dengan r25.pl. Jadi tanpa merubah squid.conf.
2. Dengan merubah squid.conf seperti dalam posting anda di atas, set permission dan ownership-nya file /etc/squid/r25.pl

Code: Select all

# chown proxy:proxy /etc/squid/r25.pl
# chmod 777 /etc/squid/r25.pl
@Madara07
Anda nikmati saja pencapaian anda saat ini, sambil mencermati trit ini. Banyak kok yang bisa dijadikan referensi :)
@pragola

jika web static seperti forum ini

[spoiler]TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... e_open.gif - DIRECT/182.253.18.141 -
1384667506.211 295 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... closed.gif - DIRECT/182.253.18.141 -
1384667506.329 332 10.10.0.253 TCP_MISS/404 576 GET http://ubuntu-indonesia.com/slide.jpg - DIRECT/182.253.18.141 text/html
1384667506.446 426 10.10.0.253 TCP_REFRESH_HIT/304 231 GET http://ubuntu-indonesia.com/UbuntuLogo3.png - DIRECT/182.253.18.141 -
1384667506.558 526 10.10.0.253 TCP_REFRESH_HIT/304 231 GET http://ubuntu-indonesia.com/Forums-Ubuntu.png - DIRECT/182.253.18.141 -
1384667506.623 590 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/styl ... y_grad.gif - DIRECT/182.253.18.141 -
1384667506.685 650 10.10.0.253 TCP_MISS/416 856 GET http://widgets.twimg.com/j/2/widget.js - DIRECT/68.232.44.139 application/javascript
1384667506.782 636 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... ontent.gif - DIRECT/182.253.18.141 -
1384667506.860 644 10.10.0.253 TCP_REFRESH_HIT/304 229 GET http://ubuntu-indonesia.com/1.gif - DIRECT/182.253.18.141 -
1384667506.986 650 10.10.0.253 TCP_REFRESH_HIT/200 976 GET http://ubuntu-indonesia.com/forums/imag ... icture.gif - DIRECT/182.253.18.141 image/gif
1384667507.104 650 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... wposts.gif - DIRECT/182.253.18.141 -
1384667507.236 604 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... t/book.gif - DIRECT/182.253.18.141 -
1384667507.361 561 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... tu-new.png - DIRECT/182.253.18.141 -
1384667507.507 642 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... ubuntu.png - DIRECT/182.253.18.141 -

1384667507.523 531 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... /Bebas.jpg - DIRECT/182.253.18.141 -
1384667507.685 575 10.10.0.253 TCP_REFRESH_HIT/304 231 GET http://ubuntu-indonesia.com/forums/imag ... ubuntu.png - DIRECT/182.253.18.1
41 -
1384667507.837 594 10.10.0.253 TCP_REFRESH_HIT/304 231 GET http://ubuntu-indonesia.com/forums/imag ... esktop.png - DIRECT/182.253.18.141 -
1384667508.218 696 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... t/help.gif - DIRECT/182.253.18.141 -
1384667508.307 779 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... htbulb.gif - DIRECT/182.253.18.141 -
1384667508.317 627 10.10.0.253 TCP_REFRESH_HIT/304 231 GET http://ubuntu-indonesia.com/forums/imag ... elajar.png - DIRECT/182.253.18.141 -
1384667508.326 483 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... ty2012.jpg - DIRECT/182.253.18.14
1 -
1384667508.635 1268 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... onsole.png - DIRECT/182.253.18.141 -
1384667508.756 531 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... /frown.gif - DIRECT/182.253.18.141 -
1384667508.883 563 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... /ubook.gif - DIRECT/182.253.18.141 -
1384667508.892 567 10.10.0.253 TCP_REFRESH_HIT/304 232 GET http://ubuntu-indonesia.com/public/ebook-lisnux.gif - DIRECT/182.253.18.141 -
1384667508.947 613 10.10.0.253 TCP_REFRESH_HIT/304 230 GET http://ubuntu-indonesia.com/forums/imag ... closed.gif - DIRECT/182.253.18.141 -[/spoiler]
ya mas pragola, mau gmana lgi hehehhe


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 25 Apr 2013, 18:33

Pragola_Pati wrote:^
@madara07
Opsi2 yang dimaksud di atas, anda taruh saja pada urutan pertama squid.conf

@anbel
anbel wrote:
Pragola_Pati wrote:^
@anbel
Kalau sudah di upload ke mesin proxy, tidak diperlukan "wget" lagi.

Berarti langkahnya sbb :
1. buat directory di proxy (Squid3 Head)
2. buat permission dan rubah mode directorynya
3. dg winscp drag dan drop file ke directory tsb.
4. dg putty tinggal tar xzvf squid-3.HEAD...(file dlm winzip,
file perintahnya apa tetap menggunakan tar?)
Mas Pragola mohon dikoreksi
yang nomer dua tdk perlu, dan yang nomer 4 kalau file-nya berformat *.zip ya bukan dengan tar tapi dengan unzip.
Mas Pragola terima kasih pencerahannya, berarti siap oprek2 lagi squid3 SSL-Bump :)


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 25 Apr 2013, 20:24

hadiah buat rekan yg sudah oprek squid-3.headnya

berikut saya tambahkan config untuk https
[spoiler]

Code: Select all

https_port 3127 transparent ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/squid3/myCA.pem
always_direct allow all
ssl_bump server-first all
sslcrtd_program /usr/lib/squid3/ssl_crtd -s /etc/squid3/ssl_db -M 4MB
sslcrtd_children 5
sslproxy_cert_error deny all
[/spoiler]
pendukungnya adalah

http://wiki.squid-cache.org/Features/SslBump
dan
http://wiki.squid-cache.org/Features/DynamicSslCert

dan jangan lupa untuk menambahkan option

Code: Select all

--enable-ssl --enable-ssl-crtd
saat build squidnya


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Apr 2013, 20:44

sawitbahar wrote:@cah_clacap

yutub yg Http://s.yutud.com koq masih TCP_MISS ada solusi mungkin mzz cah_clacap atau bung Pragola


Ngarap ini da pusing
klu kodenya r8 sekian udh HIT mzz
+++++++++++++++++++++++++++++++++++++++++++

http or https???


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Apr 2013, 20:49

Pragola_Pati wrote:[size:17pt]logfile_rotate[/size] Ternyata jika kita melakukan upil2 squid, opsi logfile_rotate tidak secara otomatis masuk kedalam logrotate system Ubuntu yaitu yang terletak di dir /etc/logrotate.d. Untuk memasukkan-nya ke dalam logrotate system =

Code: Select all

# nano /etc/logrotate.d/squid
Masukkan skrip di bawah ini =

Code: Select all

/var/log/squid/access.log /var/log/squid/yt.log {
        daily
        rotate 1
        copytruncate
        compress
        notifempty
        missingok
}
Lalu jalankan CLI

Code: Select all

# /usr/sbin/logrotate /etc/logrotate.d/squid
# logrotate -vf /etc/logrotate.d/squid
Di tempat saya outputnya seperti di bawah ini =
root@warnetersa:/etc/logrotate.d# logrotate -vf /etc/logrotate.d/squid
reading config file /etc/logrotate.d/squid
reading config info for /var/log/squid/access.log /var/log/squid/yt.log

Handling 1 logs

rotating pattern: /var/log/squid/access.log /var/log/squid/yt.log forced from command line (1 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/access.log
log needs rotating
considering log /var/log/squid/yt.log
log needs rotating
rotating log /var/log/squid/access.log, log->rotateCount is 1
dateext suffix '-20130423'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
renaming /var/log/squid/access.log.1.gz to /var/log/squid/access.log.2.gz (rotatecount 1, logstart 1, i 1),
renaming /var/log/squid/access.log.0.gz to /var/log/squid/access.log.1.gz (rotatecount 1, logstart 1, i 0),
old log /var/log/squid/access.log.0.gz does not exist
copying /var/log/squid/access.log to /var/log/squid/access.log.1
truncating /var/log/squid/access.log
compressing log with: /bin/gzip
removing old log /var/log/squid/access.log.2.gz
rotating log /var/log/squid/yt.log, log->rotateCount is 1
dateext suffix '-20130423'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
renaming /var/log/squid/yt.log.1.gz to /var/log/squid/yt.log.2.gz (rotatecount 1, logstart 1, i 1),
renaming /var/log/squid/yt.log.0.gz to /var/log/squid/yt.log.1.gz (rotatecount 1, logstart 1, i 0),
old log /var/log/squid/yt.log.0.gz does not exist
copying /var/log/squid/yt.log to /var/log/squid/yt.log.1
truncating /var/log/squid/yt.log
compressing log with: /bin/gzip
removing old log /var/log/squid/yt.log.2.gz
Jika kita periksa isi dari dir log =

Code: Select all

root@warnetersa:/etc/logrotate.d# ls -lah /var/log/squid
total 26M
drwxrwxrwx  2 proxy proxy 4,0K 2013-04-23 05:01 .
drwxr-xr-x 24 root  root  4,0K 2013-04-22 06:37 ..
-rw-r-----  1 proxy proxy    0 2013-04-23 05:01 access.log
-rw-r-----  1 proxy proxy 9,5K 2013-04-23 05:01 access.log.1.gz
-rw-r-----  1 proxy proxy  12M 2013-04-23 04:57 swap.state.00
-rw-r-----  1 proxy proxy  14M 2013-04-23 04:01 swap.state.01
-rw-r-----  1 proxy proxy    0 2013-04-23 05:01 yt.log
-rw-r-----  1 proxy proxy 7,1K 2013-04-23 05:01 yt.log.1.gz
Tags yang berhubungan dengan log, yang saya pakai di squid.conf =
access_log /var/log/squid/yt.log squid1 yutub
cache_swap_log /var/log/squid/swap.state
cache_access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log /dev/null
logfile_rotate 0

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

@ Mas Pragola :
@ SJW :
Saya sudah praktekkan arahan dr panjenengan ..... tapi kok di /var/log/squid bagian access.log dan yt.log kalo di-properties sampai 127 MB tidak terhapus otomatis ........ mohon diberi penjelasan sayanya mas


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 25 Apr 2013, 20:56

[spoiler]
SyaifuddinJW wrote:hadiah buat rekan yg sudah oprek squid-3.headnya

berikut saya tambahkan config untuk https

Code: Select all

https_port 3127 transparent ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/squid3/myCA.pem
always_direct allow all
ssl_bump server-first all
sslcrtd_program /usr/lib/squid3/ssl_crtd -s /etc/squid3/ssl_db -M 4MB
sslcrtd_children 5
sslproxy_cert_error deny all
pendukungnya adalah

http://wiki.squid-cache.org/Features/SslBump
dan
http://wiki.squid-cache.org/Features/DynamicSslCert

dan jangan lupa untuk menambahkan option

Code: Select all

--enable-ssl --enable-ssl-crtd
saat build squidnya
[/spoiler]
Terima kasih Mas Syaifuddin
Btw. sumber file squid3 head rujukan Mas sudah gak ada di servernya?
Tks.


Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests