Feeds:
Pos
Komentar

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0” on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

modprobe xt_TPROXY
modprobe xt_socket
modprobe xt_mark
modprobe nf_nat
modprobe nf_conntrack_ipv4
modprobe nf_conntrack
modprobe nf_defrag_ipv4
modprobe ipt_REDIRECT
modprobe iptable_nat

#echo 1 > /proc/sys/net/ipv4/ip_forward
##echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter
##echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
#echo 0 > /proc/sys/net/ipv4/conf/lo/rp_filter

# Mangle tproxy :
iptables -t mangle -F
iptables -t mangle -X

iptables -t mangle -N DIVERT
iptables -t mangle -A DIVERT -j MARK –set-mark 1
iptables -t mangle -A DIVERT -j ACCEPT
iptables -t mangle -A INPUT -j ACCEPT
iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT
iptables -t mangle -A PREROUTING -d 192.168.19.2 -p tcp -m multiport –dports 80,443,3127,3128,3129,8000,8080 -j ACCEPT
iptables -t mangle -A PREROUTING ! -d 192.168.19.2 -p tcp -m multiport –dports 80 -j TPROXY –tproxy-mark 0x1/0x1 –on-port 3127
iptables -t mangle -A PREROUTING ! -d 192.168.19.2 -p tcp -m multiport –dports 443 -j TPROXY –tproxy-mark 0x1/0x1 –on-port 3129

##iptables -t mangle -A PREROUTING ! -d 192.168.19.2/24 -p tcp –dport 80 -j TPROXY –tproxy-mark 0x1/0x1 –on-port 3127
##iptables -t mangle -A PREROUTING ! -d 192.168.19.2/24 -p tcp –dport 443 -j TPROXY –tproxy-mark 0x1/0x1 –on-port 3130

#iptables -t mangle -A PREROUTING -p tcp -m tcp –dport 80 -j TPROXY –tproxy-mark 0x1/0x1 –on-port 3127
#iptables -t mangle -A PREROUTING -p tcp -m tcp –dport 443 -j TPROXY –tproxy-mark 0x1/0x1 –on-port 3129

ip rule add fwmark 1 lookup 100
ip route add local 0.0.0.0/0 dev lo table 100

#/sbin/ip rule add fwmark 1 lookup 100
#/sbin/ip route add local 0.0.0.0/0 dev lo table 100

echo 0 > /proc/sys/net/ipv4/conf/lo/rp_filter
echo 1 > /proc/sys/net/ipv4/ip_forward

exit 0

#!/usr/bin/perl
###########################
#
# Silahkan diedit klo ada yg salah
#
###########################
$|=1;
while (<>) {
my $chan = “”;
if (s/^(\d+\s+)//o) {
$chan = $1;
}
$_ =~ s/(\s+.+)//o;

if ($_ =~ m/^https?:\/\/.*youtube.*(ptracking|stream_204|player_204|gen_204).*(video_id|docid|v)\=([^\&\s]*).*/){
$vid = $3 ;
@cpn = m/[&?]cpn\=([^\&\s]*)/;
$fn = “/var/log/squid/@cpn”;
unless (-e $fn) {
open FH,”>”.$fn ;
print FH “$vid\n”;
close FH;
}
print $chan, “ERR\n” ;

} elsif ($_ =~ m/^https?:\/\/.*(youtube|google).*videoplayback.*/){
@itag = m/[&?](itag=[0-9]*)/;
@ids = m/[&?]id\=([^\&\s]*)/;
@mime = m/[&?](mime\=[^\&\s]*)/;
@cpn = m/[&?]cpn\=([^\&\s]*)/;
@range = m/[&?](range=[^\&\s]*)/;
if (defined($cpn[0])) {
$fn = “/var/log/squid/@cpn”;
if (-e $fn) {
open FH,”<“.$fn ;
$id = <FH>;
chomp $id ;
close FH ;
} else {
$id = $ids[0] ;
}
print $chan, “OK store-id=http://googlevideo.squid.internal/id=” . $id . “&@itag@range@mime\n” ;
} else {
print $chan, “ERR\n” ;
}

} elsif ($_ =~ m/^http:\/\/(videos|photos|scontent)[\-a-z0-9\.]*instagram\.com\/hphotos[\-a-z0-9]*\/([\w\d\-\_\/\.]*.(mp4|jpg))/){
print $chan, “OK store-id=http://instagram.squid.internal/$2\n” ;
} elsif ($_ =~ m/^http:\/\/distilleryimage[\-a-z0-9\.]*instagram\.com\/(.*)/){
print $chan, “OK store-id=http://instagram.squid.internal/$1\n” ;

} elsif ($_ =~ m/^https?:\/\/.*\.steampowered\.com\/depot\/[0-9]+\/chunk\/([^\?]*)/){
print $chan, “OK store-id=http://steampowered.squid.internal/$1\n” ;

#} elsif ($_ =~ m/^https?:\/\/.*(fbcdn|akamaihd)\.net\/.*\/(.*\.mp4)(.*)/) {
#print $chan, “OK store-id=storeurl://facebook.squid.internal/$2\n” ;

} elsif ($_ =~ m/^https?:\/\/.*(static|profile).*a\.akamaihd\.net(\/static-ak\/rsrc\.php\/v[0-9]\/(.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg)))/) {
print $chan, “OK store-id=http://facebook.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/.*(static|profile).*\.ak\.fbcdn\.net(\/static-ak\/rsrc\.php\/v[0-9]\/(.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg)))/) {
print $chan, “OK store-id=http://facebook.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/.*(static|profile).*a\.akamaihd\.net(\/rsrc\.php\/v[0-9]\/(.*))/) {
print $chan, “OK store-id=http://facebook.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/.*(static|profile).*\.ak\.fbcdn\.net(\/rsrc\.php\/v[0-9]\/(.*))/) {
print $chan, “OK store-id=http://facebook.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*(fbcdn|akamaihd)[^\/]*net\/rsrc\.php\/(.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg))/) {
print $chan, “OK store-id=http://facebook.squid.internal/$2\n” ;

} elsif ($_ =~ m/^https?:\/\/[^\/]*(fbcdn|akamaihd)[^\/]*net\/safe\_image\.php\?.*(url\=.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg)).*/) {
print $chan, “OK store-id=http://facebook.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/i[0-2].wp\.com\/graph\.facebook\.com\/(.*)/) {
print $chan, “OK store-id=http://facebook.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/(video\.ak\.fbcdn\.net)\/(.*?)\/(.*\.mp4)\??.*$/) {
print $chan, “OK store-id=http://facebook.squid.internal/$1/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/video\.(.*)\.fbcdn\.net\/(.*?)\/([0-9_]+\.(mp4|flv|avi|mkv|m4v|mov|wmv|3gp|mpg|mpeg)?)(.*)/) {
print $chan, “OK store-id=http://facebook.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/(fbcdn|scontent).*(akamaihd|fbcdn)\.net\/(h|s)(profile|photos).*\/((p|s).*\.(png|gif|jpg))(\?.+)?$/){
print $chan, “OK store-id=http://facebook.squid.internal/$5\n” ;
} elsif ($_ =~ m/^https?:\/\/(fbcdn|scontent).*(akamaihd|fbcdn)\.net\/(h|s)(profile|photos).*\/(.*\.(png|gif|jpg))(\?.+)?$/){
print $chan, “OK store-id=http://facebook.squid.internal/$5\n” ;

} elsif ($_ =~ m/^http?:\/\/.*\.filehorse.com\/.*\/.*\/.*\/(.*\.exe)\?[a-zA-Z].*=([0-9]+)(.*\.exe)/){
print $chan, “OK store-id=storeurl://filehorse.squid.internal/$1\n” ;

} elsif ($_ =~ m/^https?:\/\/attachment\.fbsbx\.com\/.*\?(id=[0-9]*).*/) {
print $chan, “OK store-id=http://facebook.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https:\/\/.*\.google\.com\/chrome\/win\/.+\/(.*\.exe)/){
print $chan, “OK store-id=http://update-google.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.ytimg\.com\/(.*\.(webp|jpg|gif))/){
print $chan, “OK store-id=http://ytimg.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*firedrive\.com\/download\/[0-9]+\/[0-9]+\/.*\?h=.*e\=.*f\=(.*)\&.*/){
print $chan, “OK store-id=http://firedrive.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.4shared\.com\/.*\/dlink__[23]F([\w]+)_[23]F(.*)\_3Ftsid_[\w].*/){
print $chan, “OK store-id=http://4shared.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.4shared\.com\/download\/([^\/]*).*/){
print $chan, “OK store-id=http://4shared.squid.internal/$1\n” ;

} elsif ($_ =~ m/^https?:\/\/.*\.[a-z]+\.bing\.net\/(.*)\&w=.*/){
print $chan, “OK store-id=http://bing.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.bing\.(net|com)\/.*\?id=([a-zA-Z]\.[0-9]+)&pid=.*/){
print $chan, “OK store-id=http://bing.squid.internal/$2\n” ;

} elsif ($_ =~ m/^https?:\/\/.*\.gstatic\.com\/images\?q=tbn\:(.*)/){
print $chan, “OK store-id=http://gstatic.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.reverbnation\.com\/.*\/(ec_stream_song|download_song_direct|stream_song)\/([0-9]*).*/){
print $chan, “OK store-id=http://reverbnation.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.dl\.sourceforge\.net\/(.*\.(exe|zip|mp3|mp4))/){
print $chan, “OK store-id=http://sourceforge.squid.internal/$1\n” ;

} elsif ($x =~ m/^https?:\/\/fs[0-9]+\.filehippo\.com\/[^\/]*\/[^\/]*\/(.*)/){
print $chan, “OK store-id=http://filehippo.squid.internal/$1\n” ;

#} elsif ($_ =~ m/^https?:\/\/.*\.filehippo\.com\/.*/){
#print $chan, “OK store-id=http://filehippo.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/download[0-9]+.mediafire\.com\/.*\/\w+\/(.*)/){
print $chan, “OK store-id=http://mediafire.squid.internal$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*android\.clients\.google\.com\/[a-z]+\/[a-zA-Z]+\/[a-zA-Z]+\/(.*)\/([0-9]+)\?.*/){
print $chan, “OK store-id=http://android.squid.internal/$1/$2\n” ;
#} elsif ($_ =~ m/^https?:\/\/.*(googleusercontent.com|blogspot.com)\/(.*)\/([a-z0-9]+)(-[a-z]-[a-z]-[a-z]+)?\/(.*\.(jpg|png))/){
#print $chan, “OK store-id=http://googleusercontent.squid.internal/$5\n” ;
} elsif ($_ =~ m/^https?:\/\/global-shared-files-[a-z][0-9]\.softonic\.com\/.{3}\/.{3}\/.*\/.*\=(.*\.exe)/){
print $chan, “OK store-id=http://softonic.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*netmarble\.co\.id\/.*\/(data|ModooMarble)\/(.*)/){
print $chan, “OK store-id=http://netmarble.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/(.*)\.windowsupdate\.com\/(.*)\/(.*)\/([a-z].*)/){
print $chan, “OK store-id=http://windowsupdate.squid.internal/$4\n” ;
} elsif ($_ =~ m/^https?:\/\/.*filetrip\.net\/.*\/((.*)\.([^\/\?\&]{2,4}))\?.*$/){
print $chan, “OK store-id=http://filetrip.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*get4mobile\.net\/.*f=([^\/\?\&]*).*$/){
print $chan, “OK store-id=http://get4mobile.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*thestaticvube\.com\/.*\/(.*)/){
print $chan, “OK store-id=http://thestaticvube.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/113\.6\.235\.171\/youku\/.*\/(.*\.flv)/){
print $chan, “OK store-id=http://youku.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/\d+\.\d+\.\d+\.\d+\/drama\/(.*\.mp4)\?.*\=(\d+)/){
print $chan, “OK store-id=http://drama.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/([a-z])[\d]{1,2}?(.gstatic\.com.*|\.wikimapia\.org.*)/){
print $chan, “OK store-id=http://gstatic.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.[a-z][0-9]\.(tiles\.virtualearth\.net)\/(.*\&n=z)/){
print $chan, “OK store-id=http://virtualearth.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/imgv2-[0-9]\.scribdassets\.com\/(.*)/){
print $chan, “OK store-id=http://scribdassets.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/(.*?)\/(archlinux\/[a-zA-Z].*\/os\/.*)/){
print $chan, “OK store-id=http://archlinux.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/(.*?)\/speedtest\/(.*\.(jpg|txt))\??.*$/){
print $chan, “OK store-id=http://speedtest.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/i[1-9]{3}\.photobucket\.com\/(.*)/){
print $chan, “OK store-id=http://photobucket.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/i[1-9]{4}\.photobucket\.com\/(.*)/){
print $chan, “OK store-id=http://photobucket.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/avideos\.5min\.com\/.*\/(.*)\?.*/){
print $chan, “OK store-id=http://avideos.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.catalog\.video\.msn\.com\/.*\/(.*\.(mp4|flv|m4v))/){
print $chan, “OK store-id=http://msn-video.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/v\.imwx\.com\/.*\/(.*)\?.*/){
print $chan, “OK store-id=http://imwx.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/video[0-9]\.break\.com\/.*\/(.*)\?.*/){
print $chan, “OK store-id=http://break.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.video[0-9]\.blip\.tv\/.*\/(.*)\?.*/){
print $chan, “OK store-id=http://blip.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/ss[0-9]\.vidivodo\.com\/vidivodo\/vidservers\/server[0-9]*\/videos\/.*\/([a-zA-Z0-9.]*)\?.*/){
print $chan, “OK store-id=http://vidivodo.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/video\-http\.media\-imdb\.com\/([a-zA-Z0-9\@\_\-]+\.(mp4|flv|m4v))\?.*/){
print $chan, “OK store-id=http://imdb-video.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/(vl|v)\.mccont\.com\/(.*)\/(.*\.(mp4|m4v|flv))\?.*/){
print $chan, “OK store-id=http://mccont.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/(vid.{0,2}|proxy.*)(\.ak|\.ec|\.akm|)\.(dmcdn\.net|dailymotion\.com)\/.*\/(frag.*\.(flv|mp4|m4v)).*/){
print $chan, “OK store-id=http://dailymotion.squid.internal/$4\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.vimeo[^\/]*\.com.*\/([[^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg|web))\?.*/){
print $chan, “OK store-id=http://vimeo.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/fcache\.veoh\.com\/.*\/.*(l[0-9]*\.(mp4|flv))\?.*/){
print $chan, “OK store-id=http://veoh.squid.internal$1\n” ;
} elsif ($_ =~ m/^https?:\/\/video\.thestaticvube\.com\/.*\/(.*)/){
print $chan, “OK store-id=http://thestaticvube.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/cdn[0-9]\.videos\.videobash\.com\/.*\/(.*\.(mp4|m4v|flv))\?.*/){
print $chan, “OK store-id=http://videobash.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.phncdn[^\/]*\.com.*\/([[^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://phncdn.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.xvideos\.com\/.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://xvideos.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.tube8[^\/]*\.com.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://tube8.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.(redtube|redtubefiles)\.com\/.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://redtube.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/.*\/xh.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))/){
print $chan, “OK store-id=http://xhcdn.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.xhcdn[^\/]*\.com.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://xhcdn.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.nsimg[^\/]*\.net.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://nsimg.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.youjizz\.com.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://youjizz.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.public\.keezmovies[^\/]*\.com.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://keezmovies.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.youporn[^\/]*\.com.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://youporn.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.spankwire[^\/]*\.com.*\/([^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://spankwire.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.pornhub[^\/]*\.com.*\/([[^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://pornhub.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.us.playvid[^\/]*\.com.*\/([[^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://playvid.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.slutload-media[^\/]*\.com.*\/([[^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://slutload-media.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.hardsextube[^\/]*\.com.*\/([[^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://hardsextube.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*\.public\.extremetube[^\/]*\.com.*\/([[^\/]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*/){
print $chan, “OK store-id=http://extremetube.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|.exoclick\.com|interclick.\com|\.googlesyndication\.com|\.auditude\.com|.visiblemeasures\.com|yieldmanager|cpxinteractive)(.*)/){
print $chan, “OK store-id=http://ads.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/(.*?)\/(ads)\?(.*?)/){
print $chan, “OK store-id=http://ads.squid.internal/$3\n” ;
} elsif ($_ =~ m/^https?:\/\/[^\/]*phobos\.apple\.com\/.*\/([^\/]*\.ipa)/){
print $chan, “OK store-id=http://apple.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/fs\w*\.fileserve\.com\/file\/(\w*)\/[\w-]*\.\/(.*)/){
print $chan, “OK store-id=http://fileserve.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/s[0-9]*\.filesonic\.com\/download\/([0-9]*)\/(.*)/){
print $chan, “OK store-id=http://filesonic.squid.internal/$2\n” ;
} elsif ($_ =~ m/^https?:\/\/download[0-9]{3}\.avast\.com\/(.*)/){
print $chan, “OK store-id=http://avast.squid.internal/41\n” ;
} elsif ($_ =~ m/^https?:\/\/[a-zA-Z0-9]+\.[a-zA-Z0-9]+x\.[a-z]\.avast\.com\/[a-zA-Z0-9]+x\/(.*\.vpx)/){
print $chan, “OK store-id=http://avast.squid.internal\$1\n” ;
} elsif ($_ =~ m/^https?:\/\/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/(iavs.*)/){
print $chan, “OK store-id=http://iavs.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/.*\.starhub\.com\/[a-z]+\/[a-z]+\/[a-z]+\/(.*exe)\?[0-9]/){
print $chan, “OK store-id=http://starhub.squid.internal/$1\n” ;
} elsif ($_ =~ m/^https?:\/\/dnl-[0-9]{2}\.geo\.kaspersky\.com\/(.*)/){
print $chan, “OK store-id=http://kaspersky.squid.internal/$1\n” ;
#} elsif ($_ =~ m/^https?:\/\/([^\.]*)\.yimg\.com\/(.*)/){
#print $chan, “OK store-id=http://yimg.squid.internal/$1\n” ;
} else {
print $chan, “ERR\n” ;
}
}

acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
#acl Safe_ports port 8080
#acl Safe_ports port 8000
#acl Safe_ports port 8500
#acl Safe_ports port 3128
acl CONNECT method CONNECT

##this for send to storeid
acl youtube_to_storeid url_regex -i ^https?:\/\/.*(youtube|google).*(set_awesome|stream_204|playback|ptracking|watchtime|atr|player_204|videogoodput|get_video|get_video_info|s\?|delayplay|ads|qoe|gen_204).*(video_id|docid|\&v|content_v)\=([^\&\s]*).*
#acl youtube_to_storeid url_regex -i ^https?:\/\/.*(youtube|google).*videoplayback.*
#acl youtube_to_storeid url_regex -i youtube.*(ptracking|stream_204|player_204|gen_204).*(video_id|docid|v)\=.*
acl youtube_to_storeid url_regex -i ^https?:\/\/.*(youtube|google).*(videoplayback|liveplay).*
acl https_bank dstdomain \.(mail.yahoo.com|mail.google.com|gmail.com|bri.co.id|bankmandiri.co.id|klikbca.com|bni.com)
acl https_bank dstdomain http://www.gmail.com gmail.com ib.bri.co.id bri.co.id
#acl exc_ip dst 173.194.120.117
#acl exc_ip dst 173.194.120.118
#acl exc_ip dst 173.194.126.118
#gmail
#acl exc_ip dst 173.194.126.0/24
#acl exc_ip dst 216.58.196.0/24
#acl exc_ip dst 173.194.126.117
#acl exc_ip dst 112.215.62.232
#acl exc_ip dst 64.185.181.238

acl https_login url_regex -i ^https.*(login|Login).*
acl https_login url_regex -i ^https.*cdn\.yimg\.com.*
acl https_login url_regex -i ^https:\/\/ib\.bri\.co\.id\/ib-bri\/.*

acl partial206 url_regex -i ^http:\/\/.*\.garenanow\.com\/games\/pbid\/patcher\/.*
#acl partial206 url_regex -i ^http:\/\/.*\.garenanow\.com\/imupdate\/.*
range_offset_limit -1 partial206

#Via Squid
#acl error_script url_regex -i ^http:\/\/www\.msftncsi\.com\/.*
acl error_script url_regex -i .*cfs.u-ad.info\/.*
#acl error_script url_regex -i .*\.gemscool.com\/.*\.js
http_access deny error_script

acl crome url_regex -i ^http:\/\/.*\.pack.google.com\/edgedl\/chrome\/win\/.*
acl crome url_regex -i ^http:\/\/cache.pack.google.com\/edgedl\/.*
acl crome url_regex -i ^http:\/\/www.google.com\/dl\/chrome\/win\/.*
http_access deny crome

acl DENYCACHE urlpath_regex (notice.html|afs.dat|dat.asp|patchinfo.xml|version.list|iepngfix.htc|updates.txt|patchlist.txt|news_0.jpg.dfg)
acl DENYCACHE urlpath_regex (pointblank.css|login_form.css|form.css|crossdomain.xml|news_0.jpg.dfg)$
cache deny DENYCACHE

acl deny_domain dstdomain .windowsupdate.com
http_access deny deny_domain

#deny_url
#—————————————————————————-
#acl deny_cache url_regex -i \.*(youtube|google).*\/s?.*\=.*&vq\=.*&fs\=.*$
#acl deny_cache url_regex -i ^https?.*(mdn.net\/instream|googleapis.com|double
#http_reply_access deny deny_cache

#————————————————————-
#acl deny_cache url_regex -i \.*mdn\.net\/instream\/html5/.*
#acl deny_toHelper url_regex -i redbot\.org (get_video|videoplayback\?id|video
#acl youtube url_regex -i youtube.*(ptracking|stream_204|playback|player_204|g
#cache deny deny_cache
request_header_access Accept-Ranges deny all
reply_header_access Accept-Ranges deny all
request_header_replace Accept-Ranges none
reply_header_replace Accept-Ranges none

acl redir urlpath_regex -i \.htm$ cgi-bin \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$
acl redir urlpath_regex -i &redirect_counter=.*cms_redirect=yes

acl bypast dstdomain .gmail.com
acl bypast dstdomain \.(mail.yahoo.com|bri.co.id|bankmandiri.co.id|klikbca.com|bni.com)

acl nocache url_regex -i \.(form&lang=in_ID|pointblank.css|Login.do|login_form.css|form.css)$
acl nocache url_regex -i \.(j_spring_security_check|noupdate.ui|PatchTimeCheck.dat|PatchPath.dat|wpad.dat|cacheKey=|sources|captcha|recaptcha|reset|version|latest|login|notice|patchinfo.xml|patcherContent.php|gs_service_login.php|iepngfix.htc|str_mission_id.stg|str_id.stg|dc-canvas|BotDetectCaptcha.ashx)
acl nocache url_regex \.(dbd|db|ver|ini|cfg|lst|1st|rsc|log|googleusercontent|conf|rsc|jsp|cgi|asx|partialinfo)$
acl nocache url_regex \/(noupdate.ui|afs.dat|str_mission_id.stg|str_id.stg|dc-canvas|PatchTimeCheck.dat|PatchPath.dat|wpad.dat|cacheKey=|sources|captcha|recaptcha|reset|version|latest|login|notice|patchinfo.xml|patcherContent.php|gs_service_login.php|iepngfix.htc|str_mission_id.stg|str_id.stg)
acl nocache url_regex ^http.*gemscool\.com\/registration\/.*
acl nocache url_regex ^http.*gemscool\.com\/isiGcash\/.*
acl nocache url_regex ^http.*mdn\.net\/instream\/flash\/v[0-9]\/adsapi.*.swf
#acl nocache url_regex ^https?:\/\/apps\.ninjasaga\.com\/.*\.(txt|js|swf|jpg|png|gif)
acl nocache url_regex ^http.*live\.mytrans\.com.*
acl nocache url_regex ^http.*socialpointgames\.com\/dragoncity.*USERID.*
acl nocache url_regex -i ^http.*garenanow\.com\/imupdate\/.*garena\.game\.plugins\/.*
acl nocache url_regex -i ^http.*gvoucher.*
acl nocache url_regex -i ^https:\/\/mail\.google\.com\/.*
acl nocache url_regex -i ^http:\/\/.*\.gemscool\.com\/lsaga\/hackshield\/.*

#acl storeid-helper url_regex -i ^https:\/\/.*(akamaihd|fbcdn)\.net\/.*
acl storeid-helper url_regex -i ^https:\/\/(fbcdn|scontent).*(akamaihd|fbcdn)\.net\/(h|s)(profile|photos).*\/((p|s).*)\/(.*.(png|gif|jpg|jpeg))
acl storeid-helper url_regex -i ^https:\/\/.*(profile|photo|creative)*.akamaihd\.net\/((h|)(profile|photos|ads)-ak-)(snc|ash|prn|frc[0-9])[0-9]?(.*)/)
#acl storeid-helper url_regex -i ^https:\/\/zynga[1-9]?-a.(akamaihd.net.*)/)
#acl storeid-helper url_regex -i ^https:\/\/apps\.facebook\.com\/.*
acl storeid-helper url_regex -i ^https:\/\/[^\/]*(fbcdn|akamaihd)[^\/]*net\/rsrc\.php\/(.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg))/)
acl storeid-helper url_regex -i ^https:\/\/[^\/]*(fbcdn|akamaihd)[^\/]*net\/safe\_image\.php\?.*(url\=.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg)).*/)
acl storeid-helper url_regex -i ^https:\/\/(fbcdn|scontent).*(akamaihd|fbcdn)\.net\/(h|s)(profile|photos).*\/((p|s).*\.(png|gif|jpg|jpeg))(\?.+)?$/)
acl storeid-helper url_regex -i ^https?:\/\/.*\.ytimg\.com\/(.*\.(webp|jpg|gif|swf|jpeg))

acl storeid-helper url_regex -i ^https?:\/\/attachment\.fbsbx\.com\/.*\?(id=[0-9]*).*
acl storeid-helper url_regex -i \.fbsbx\.com\/.*\/(.*\.(unity3d|pak|zip|exe|dll|jpg|png|gif|swf|jpeg)/)$
acl storeid-helper url_regex -i ^https?:\/\/([^\.]*)\.yimg\.com\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/.*\.gstatic\.com\/images\?q=tbn\:(.*)
acl storeid-helper url_regex -i ^https?:\/\/.*\.reverbnation\.com\/.*\/(ec_stream_song|download_song_direct|stream_song)\/([0-9]*).*
acl storeid-helper url_regex -i ^https?:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|.exoclick\.com|interclick.\com|\.googlesyndication\.com|\.auditude\.com|.visiblemeasures\.com|yieldmanager|cpxinteractive)(.*)
acl storeid-helper url_regex -i ^https?:\/\/(.*?)\/(ads)\?(.*?)
acl storeid-helper url_regex -i ^https?:\/\/.*steampowered\.com\/.*\/([0-9]+\/(.*))
acl storeid-helper url_regex -i ^http:\/\/.*\.filehorse.com\/.*\/.*\/.*\/(.*\.exe)\?[a-zA-Z].*=([0-9]+)(.*\.exe)
acl storeid-helper url_regex -i ^http:\/\/.*firedrive\.com\/download\/[0-9]+\/[0-9]+\/.*\?h=.*e\=.*f\=(.*)\&.*
acl storeid-helper url_regex -i ^http:\/\/.*\.4shared\.com\/.*\/dlink__[23]F([\w]+)_[23]F(.*)\_3Ftsid_[\w].*
acl storeid-helper url_regex -i ^http:\/\/.*\.4shared\.com\/download\/([^\/]*).*
acl storeid-helper url_regex -i reverbnation.*audio_player.*ec_stream_song.*$

acl storeid-helper url_regex -i ^https?:\/\/.*\.garenanow\.com\/.*\/patcher\/.*
acl storeid-helper url_regex -i utm.gif.*
acl storeid-helper url_regex -i c.android.clients.google.com.market.GetBinary.GetBinary.*

acl storeid-helper url_regex -i ^https?:\/\/(videos|photos).*\.ak\.instagram\.com\/hphotos.*
acl storeid-helper url_regex -i youtube.*(ptracking|stream_204|player_204|gen_204).*(video_id|docid|v)\=.*
acl storeid-helper url_regex -i ^https?:\/\/.*(youtube|google).*(videoplayback|liveplay).*
acl storeid-helper url_regex -i ^https?:\/\/.*\.steampowered\.com\/depot\/[0-9]+\/chunk\/([^\?]*)
acl storeid-helper url_regex -i ^https:\/\/.*(akamaihd|fbcdn)\.net\/.*
acl storeid-helper url_regex -i ^https:\/\/(fbcdn|scontent).*(akamaihd|fbcdn)\.net\/(h|s)(profile|photos).*\/((p|s).*)\/(.*.(png|gif|jpg))
acl storeid-helper url_regex -i ^https:\/\/.*(profile|photo|creative)*.akamaihd\.net\/((h|)(profile|photos|ads)-ak-)(snc|ash|prn|frc[0-9])[0-9]?(.*)/)
acl storeid-helper url_regex -i ^https:\/\/zynga[1-9]?-a.(akamaihd.net.*)/)
acl storeid-helper url_regex -i ^https:\/\/apps\.facebook\.com\/.*
acl storeid-helper url_regex -i ^https:\/\/[^\/]*(fbcdn|akamaihd)[^\/]*net\/rsrc\.php\/(.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg))/)
acl storeid-helper url_regex -i ^https:\/\/[^\/]*(fbcdn|akamaihd)[^\/]*net\/safe\_image\.php\?.*(url\=.*\.(mp4|jpg|bmp|png|flv|m4v|gif|jpeg)).*/)
acl storeid-helper url_regex -i ^https:\/\/(fbcdn|scontent).*(akamaihd|fbcdn)\.net\/(h|s)(profile|photos).*\/((p|s).*\.(png|gif|jpg))(\?.+)?$/)
acl storeid-helper url_regex -i ^https?:\/\/.*\.ytimg\.com\/(.*\.(webp|jpg|gif|swf))
acl storeid-helper url_regex -i ^https?:\/\/([^\.]*)\.yimg\.com\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/[1-4]\.bp\.blogspot\.com.*
acl storeid-helper url_regex -i ^https?:\/\/www\.google-analytics\.com\/__utm\.gif\?.*

acl storeid-helper url_regex -i ^https:\/\/fbcdn-profile-a.akamaihd.net\/.*
acl storeid-helper url_regex -i ^http:\/\/.*\.filehorse.com\/.*\/.*\/.*\/(.*\.exe)\?[a-zA-Z].*=([0-9]+)(.*\.exe)

acl storeid-helper url_regex -i ^https?:\/\/.*\.google\.com\/chrome\/win\/.+\/(.*\.exe)
acl storeid-helper url_regex -i ^http:\/\/.*firedrive\.com\/download\/[0-9]+\/[0-9]+\/.*\?h=.*e\=.*f\=(.*)\&.*
acl storeid-helper url_regex -i ^http:\/\/.*\.4shared\.com\/.*\/dlink__[23]F([\w]+)_[23]F(.*)\_3Ftsid_[\w].*
acl storeid-helper url_regex -i ^http:\/\/.*\.4shared\.com\/download\/([^\/]*).*
acl storeid-helper url_regex -i ^https?:\/\/.*\.[a-z]+\.bing\.net\/(.*)\&w=.*
acl storeid-helper url_regex -i ^https?:\/\/.*\.bing\.(net|com)\/.*\?id=([a-zA-Z]\.[0-9]+)&pid=.*
acl storeid-helper url_regex -i ^https?:\/\/.*\.gstatic\.com\/images\?q=tbn\:(.*)
acl storeid-helper url_regex -i ^https?:\/\/.*\.reverbnation\.com\/.*\/(ec_stream_song|download_song_direct|stream_song)\/([0-9]*).*
acl storeid-helper url_regex -i ^https?:\/\/.*\.dl\.sourceforge\.net\/(.*\.(exe|zip|mp3|mp4))
acl storeid-helper url_regex -i ^http:\/\/download[0-9]+.mediafire\.com\/.*\/\w+\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/.*android\.clients\.google\.com\/[a-z]+\/[a-zA-Z]+\/[a-zA-Z]+\/(.*)\/([0-9]+)\?.*
acl storeid-helper url_regex -i ^https?:\/\/.*(googleusercontent.com|blogspot.com)\/(.*)\/([a-z0-9]+)(-[a-z]-[a-z]-[a-z]+)?\/(.*\.(jpg|png))
acl storeid-helper url_regex -i ^https?:\/\/global-shared-files-[a-z][0-9]\.softonic\.com\/.{3}\/.{3}\/.*\/.*\=(.*\.exe)
acl storeid-helper url_regex -i ^https?:\/\/.*netmarble\.co\.id\/.*\/(data|ModooMarble)\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/(.*)\.windowsupdate\.com\/(.*)\/(.*)\/([a-z].*)
acl storeid-helper url_regex -i ^https?:\/\/.*filetrip\.net\/.*\/((.*)\.([^\/\?\&]{2,4}))\?.*$
acl storeid-helper url_regex -i ^https?:\/\/.*get4mobile\.net\/.*f=([^\/\?\&]*).*$
acl storeid-helper url_regex -i ^https?:\/\/.*thestaticvube\.com\/.*\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/113\.6\.235\.171\/youku\/.*\/(.*\.flv)
acl storeid-helper url_regex -i ^https?:\/\/\d+\.\d+\.\d+\.\d+\/drama\/(.*\.mp4)\?.*\=(\d+)
acl storeid-helper url_regex -i ^https?:\/\/([a-z])[\d]{1,2}?(.gstatic\.com.*|\.wikimapia\.org.*)
acl storeid-helper url_regex -i ^https?:\/\/.*\.[a-z][0-9]\.(tiles\.virtualearth\.net)\/(.*\&n=z)
acl storeid-helper url_regex -i ^https?:\/\/imgv2-[0-9]\.scribdassets\.com\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/(.*?)\/(archlinux\/[a-zA-Z].*\/os\/.*)
acl storeid-helper url_regex -i ^http:\/\/(.*?)\/speedtest\/(.*\.(jpg|txt))\??.*$
acl storeid-helper url_regex -i ^https?:\/\/i[1-9]{3}\.photobucket\.com\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/i[1-9]{4}\.photobucket\.com\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/avideos\.5min\.com\/.*\/(.*)\?.*
acl storeid-helper url_regex -i ^https?:\/\/.*\.catalog\.video\.msn\.com\/.*\/(.*\.(mp4|flv|m4v))
acl storeid-helper url_regex -i ^https?:\/\/v\.imwx\.com\/.*\/(.*)\?.*
acl storeid-helper url_regex -i ^https?:\/\/video[0-9]\.break\.com\/.*\/(.*)\?.*
acl storeid-helper url_regex -i ^https?:\/\/.*\.video[0-9]\.blip\.tv\/.*\/(.*)\?.*
acl storeid-helper url_regex -i ^https?:\/\/ss[0-9]\.vidivodo\.com\/vidivodo\/vidservers\/server[0-9]*\/videos\/.*\/([a-zA-Z0-9.]*)\?.*
acl storeid-helper url_regex -i ^https?:\/\/video\-http\.media\-imdb\.com\/([a-zA-Z0-9\@\_\-]+\.(mp4|flv|m4v))\?.*
acl storeid-helper url_regex -i ^https?:\/\/(vl|v)\.mccont\.com\/(.*)\/(.*\.(mp4|m4v|flv))\?.*
acl storeid-helper url_regex -i ^https?:\/\/(vid.{0,2}|proxy.*)(\.ak|\.ec|\.akm|)\.(dmcdn\.net|dailymotion\.com)\/.*\/(frag.*\.(flv|mp4|m4v)).*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.vimeo[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg|web))\?.*
acl storeid-helper url_regex -i ^https?:\/\/fcache\.veoh\.com\/.*\/.*(l[0-9]*\.(mp4|flv))\?.*
acl storeid-helper url_regex -i ^https?:\/\/video\.thestaticvube\.com\/.*\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/cdn[0-9]\.videos\.videobash\.com\/.*\/(.*\.(mp4|m4v|flv))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.phncdn[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/.*\.xvideos\.com\/.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.tube8[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/.*\.(redtube|redtubefiles)\.com\/.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\/.*\/xh.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.xhcdn[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.nsimg[a-zA-Z0-9\-\_\.\%]*\.net.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/.*\.youjizz\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.public\.keezmovies[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.youporn[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.spankwire[a-zA-Z0-9\-\_\.\%]*\.com.*\/([a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.pornhub[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.us.playvid[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.slutload-media[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.hardsextube[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*\.public\.extremetube[a-zA-Z0-9\-\_\.\%]*\.com.*\/([[a-zA-Z0-9\-\_\.\%]*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg))\?.*
acl storeid-helper url_regex -i ^https?:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|.exoclick\.com|interclick.\com|\.googlesyndication\.com|\.auditude\.com|.visiblemeasures\.com|yieldmanager|cpxinteractive)(.*)
acl storeid-helper url_regex -i ^https?:\/\/(.*?)\/(ads)\?(.*?)
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*phobos\.apple\.com\/.*\/([a-zA-Z0-9\-\_\.\%]*\.ipa)
acl storeid-helper url_regex -i ^https?:\/\/fs\w*\.fileserve\.com\/file\/(\w*)\/[\w-]*\.\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/s[0-9]*\.filesonic\.com\/download\/([0-9]*)\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/download[0-9]{3}\.avast\.com\/(.*)
acl storeid-helper url_regex -i ^https?:\/\/[a-zA-Z0-9]+\.[a-zA-Z0-9]+x\.[a-z]\.avast\.com\/[a-zA-Z0-9]+x\/(.*\.vpx)
acl storeid-helper url_regex -i ^https?:\/\/[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\/(iavs.*)
acl storeid-helper url_regex -i ^https?:\/\/.*\.starhub\.com\/[a-z]+\/[a-z]+\/[a-z]+\/(.*exe)\?[0-9]
acl storeid-helper url_regex -i ^https?:\/\/dnl-[0-9]{2}\.geo\.kaspersky\.com\/(.*)
acl QUERY urlpath_regex -i (begin|start)\=
acl QUERY urlpath_regex -i cgi-bin \? .php$ .asp$ .shtml$ .cfm$ .cfml$ .phtml$ .php3$ localhost
acl dontrewrite url_regex -i c\.youtube\.com\/.*(begin|start)\=.*
acl dontrewrite url_regex redbot\.org
acl getmethod method GET
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
#SSL BUMP OPTION
#always_direct allow all
#ssl_bump splice bypast
#ssl_bump peek bypast
#ssl_bump server-first all
#sslproxy_cert_error deny all
#sslproxy_flags DONT_VERIFY_PEER
#sslcrtd_program /usr/lib/squid/ssl_crtd -s /var/lib/squid/ssl_db -M 10MB
#sslcrtd_program /usr/lib/squid/ssl_crtd -s /var/lib/squid/ssl_db -M 4MB
#sslcrtd_children 8 startup=1 idle=1
https_port 3129 tproxy ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/squid/ssl_certs/myCA.pem
http_port 3128
http_port 3127 tproxy

sslcrtd_program /usr/lib/squid/ssl_crtd -s /var/squid/ssl_db/certs/ -M 4MB
sslcrtd_children 25 startup=15 idle=5

#sslcrtd_children 32 startup=5 idle=1
#sslproxy_cert_error allow all
sslproxy_cert_error deny all
sslproxy_flags DONT_VERIFY_PEER
ssl_bump server-first all
always_direct allow all
#oke bgt ini ninja saga
acl mysslbump method CONNECT
acl sslstep1 at_step SslBump1
ssl_bump peek sslstep1
ssl_bump bump mysslbump
ssl_bump splice all

#ssl_bump none https_bank
#ssl_bump none https_login
#ssl_bump none exc_ip
#ssl_bump none nocache
#ssl_bump none redir

#ssl_bump server-first all
#ssl_bump bump all

#cache allow all
#cache allow store_rewrite_list
#cache allow storeid-helper
#cache deny QUERY
#cache deny https_bank
#cache deny https_login
#cache deny redir

#include /etc/squid/tune.conf

memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_mem 128 MB
maximum_object_size_in_memory 0 KB
#maximum_object_size_in_memory 13 KB
minimum_object_size 1 KB
maximum_object_size 1024 MB
cache_swap_low 95
cache_swap_high 99

cache_dir aufs /proxy1 32000 75 256
cache_dir aufs /proxy2 32000 75 256
cache_dir aufs /proxy3 32000 75 256
cache_dir aufs /proxy4 32000 75 256
cache_dir aufs /proxy5 32000 75 256

coredump_dir /var/spool/squid

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

logfile_rotate 1
#log_icp_queries off
store_id_program /etc/squid/store-id.pl
store_id_children 20 startup=0 idle=1 concurrency=0
store_id_access deny !getmethod
store_id_access allow youtube_to_storeid
#store_id_access allow store_rewrite_list
store_id_access allow storeid-helper
#store_id_access allow youtube
store_id_access deny all

#store_miss deny youtube loop_302
#send_hit deny youtube loop_302

#——————————————————————————————–

# Youtube Video
refresh_pattern -i (get_video\?|videoplayback\?|videodownload\?|\.mp4|\.webm|\.flv|((audio|video)\/(webm|mp4))) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|liveplay\?) 10080 99% 43200 override-expire ignore-reload ignore-no-store ignore-private ignore-auth override-lastmod store-stale
refresh_pattern -i ^https?\:\/\/.*\.googlevideo\.com\/videoplayback.* 10080 99% 43200 override-lastmod override-expire ignore-reload reload-into-ims ignore-private reload-into-ims ignore-auth store-stale
refresh_pattern -i ^https?\:\/\/.*\.googlevideo\.com\/videoplayback.*$ 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale

# REGEX Refresh Pattern
refresh_pattern -i ^http.*squid\.internal.* 43200 99% 79900 override-expire override-lastmod ignore-reload ignore-no-store ignore-must-revalidate ignore-private ignore-auth
#refresh_pattern . 0 99% 518400 ignore-no-store ignore-private reload-into-ims store-stale

# URL
refresh_pattern -i ^https:\/\/www\.google\.*\/$ 10080 99% 14400 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale

################################### njajal

#images facebook
#refresh_pattern -i \.*fbcdn.*net\/.*\.((jp(e?g|e|2)|gif|png|bm?|tiff?|ico|swf|css)|(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|css)(\?|.*$)) 10080 90% 14400 ignore-no-store ignore-private override-expire override-lastmod reload-into-ims ignore-auth
##refresh_pattern -i \.*pixel\.facebook\.com\/.*\.(jpg|png|gif|ico|css|jpeg) 10080 80% 14400 override-expire ignore-reload reload-into-ims ignore-auth
#refresh_pattern -i \.*akamaihd\.net\/.*\.(jpg|jpeg|png|gif|ico|css) 10080 90% 14400 override-expire ignore-reload reload-into-ims ignore-auth
#refresh_pattern -i ((facebook.com)|(85.131.151.39))\.(jpg|jpeg|png|gif) 10080 90% 14400 ignore-reload override-expire ignore-no-store store-stale
#refresh_pattern -i \.*fbcdn\.net\/.*\.((jp(e?g|e|2)|gif|png|bm?|tiff?|ico|swf|css)|(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|css)(\?|.*$)) 10080 90% 14400 ignore-no-store ignore-private override-expire override-lastmod reload-into-ims ignore-auth
#refresh_pattern -i \.*static\.(xx|ak)\.fbcdn\.net\/.*\.(jpg|gif|png|jpeg) 10080 90% 14400 ignore-reload override-expire ignore-no-store
##refresh_pattern -i ^https?:\/\/profile\.ak\.fbcdn.net\/.*\.(jpg|gif|png|jpeg) 4320 80% 14400 ignore-reload override-expire ignore-no-store

# Video Facebook
refresh_pattern -i \.*video.ak.fbcdn.net\/.*\.(mp4|flv|mp3|amf) 10080 80% 43200 override-expire ignore-reload reload-into-ims ignore-private ignore-no-store ignore-must-revalidate

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

#refresh_pattern -i ^https:\/\/.*(akamaihd|fbcdn)\.net\/.*\.(jp(e?g|e|2)|gif|png|jpg|bmp|flv|m4v|swf|mp(3|4)) 10080 90% 14400 override-expire override-lastmod ignore-reload ignore-private
#refresh_pattern -i ^https:\/\/apps\.facebook\.com\/.* 0 0% 0
refresh_pattern \.facebook\.com\/.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|mp(4|3)) 10080 90% 14400 override-expire ignore-reload ignore-private
refresh_pattern \.fbcdn\.net\/.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 10080 90% 14400 override-expire ignore-reload ignore-private store-stale
refresh_pattern \.gstatic\.com\/images\? 10080 99% 14400 override-expire override-lastmod ignore-reload ignore-private ignore-must-revalidate
refresh_pattern \.(akamaihd|edgecastcdn|spilcdn|zgncdn|(tw|y|yt)img)\.com\/.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 10080 99% 14400 override-expire override-lastmod ignore-reload ignore-private
refresh_pattern (gstatic|diggstatic)\.com\/.* 10080 99% 14400 override-expire ignore-reload ignore-private
refresh_pattern (photobucket|pbsrc|flickr|gravatar)\.com\/.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 10080 99% 14400 override-expire ignore-reload ignore-private
#refresh_pattern (zynga|ninjasaga|mafiawars|cityville|farmville|crowdstar|spilcdn|agame|popcap)\.com/.* 10080 90% 14400 override-expire ignore-reload ignore-private
refresh_pattern ^http:\/\/images|image|img|pics|openx|thumbs[0-9]\. 10080 99% 14400 override-expire ignore-reload ignore-private
refresh_pattern ^.*safebrowsing.*google 10080 99% 14400 override-expire ignore-reload ignore-private ignore-auth ignore-must-revalidate
refresh_pattern -i reverbnation.com 10080 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private ignore-must-revalidate ignore-reload store-stale

# ADS
refresh_pattern -i \.(html|htm|css|js|png|jsp|asx|asp|aspx)$ 240 100% 420
refresh_pattern -i ^.*(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).* 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i \.(ico|video-stats|jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)|js|xml|css) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i kaskus.\us.*\.(jpg|gif|png|swf|js|xml|css) 14400 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i ^http:\/\/img\.kaskus\.us\/.*\.(jpg|gif|png|swf|js|xml|css) 14400 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i ^http:\/\/img\.gemscool\.com\/.*\.(jpg|gif|png|swf|js|xml|css) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i ^http:\/\/img\.pb\.gemscool\.com\/.*\.(jpg|gif|png|swf|js|xml|css) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i ^http:\/\/img\.atlantica\.gemscool\.com\/.*\.(jpg|gif|png|swf|js|xml|css) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i ^http:\/\/img\.fs\.gemscool\.com\/.*\.(jpg|gif|png|swf|js|xml|css) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i ^http:\/\/img\.vivanews\.com\/.*\.(jpg|gif|png|swf|js|xml|css) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale

refresh_pattern -i \/speedtest\/.*\.(txt|jpg|png|swf) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
refresh_pattern -i \.pixieimage\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 10080 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
refresh_pattern -i \.blogspot\.com\/.*\.(jpg|jpeg|jpeg2)|gif|png|tiff?|bmp|swf|mp(4|3)) 10080 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
refresh_pattern -i \.multiply\.com\/.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 10080 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
refresh_pattern -i \.(jpg|gif|css|ico)($|\?) 10080 99% 43800 ignore-no-store ignore-private reload-into-ims ignore-must-revalidate store-stale

## FILES TYPE
refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|cup|dvr-ms|ram|rpm|exe|inc|cab|qt) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|7zip|tar|pak|cup) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern -i \.(jpg|jpeg|jpeg2|gif|png|bm?|tiff?|ico|dat|ad|txt|dll) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate 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|wav) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate 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) 10080 99% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale

refresh_pattern -i .(html|htm|css|txt|js|xml|php)$ 0 0% 0
refresh_pattern -i .index.(html|htm)$ 0 0% 0
#refresh_pattern -i ^https?:\/\/apps\.ninjasaga\.com\/.*\.(txt|js|swf|jpg|png|gif) 0 0% 0
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# DYNAMIC CONTENT
#refresh_pattern (/cgi-bin/|\?) 0 0% 0
#refresh_pattern ^gopher: 1440 0% 1440
#refresh_pattern ^ftp: 10080 90% 79900 override-lastmod reload-into-ims
#refresh_pattern . 60 90% 79900 override-lastmod reload-into-ims
#########################################################################

strip_query_terms off
dns_v4_first on

#max_filedesc 65536
fqdncache_size 2048
ipcache_size 2048
ipcache_low 95
ipcache_high 98

range_offset_limit 1 KB
#range_offset_limit none
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
#request_header_max_size 200 KB
#reply_header_max_size 200 KB
shutdown_lifetime 10 seconds
#read_ahead_gap 32 KB

memory_pools off
client_db off
##reload_into_ims on
#retry_on_error on
#pipeline_prefetch 100
offline_mode off
cache_effective_user proxy
cache_effective_group proxy
request_header_access From deny all
request_header_access Server deny all
request_header_access WWW-Authenticate deny all
request_header_access Link deny all
request_header_access Cache-Control deny all
request_header_access Proxy-Connection deny all
request_header_access X-Cache deny all
request_header_access X-Cache-Lookup deny all
request_header_access Via deny all
request_header_access Forwarded-For deny all
request_header_access X-Forwarded-For deny all
request_header_access Pragma deny all
request_header_access Keep-Alive deny all
#vary_ignore_expire on
# local
qos_flows local-hit=0x30
cache_mgr net3322@yahoo.com
cache_effective_user proxy
cache_effective_group proxy
#httpd_suppress_version_string on
visible_hostname my-net33
cachemgr_passwd none all

Buat yg galau ma gmail.com ==> tambahkan di filter rules

/ip fi fi
add action=add-dst-to-address-list address-list=no-bump \
address-list-timeout=20s chain=forward comment=SCANNER-BYPASS-SSL \
content=gmail.com dst-port=443 protocol=tcp

lalu address-list=no-bump di tambahkan ke mangle TPROXY dgn tanda pentung=> ! menjadi => dst-address-list=!no-bump ,,,,,,,moga berhasil

Rules di atas jg bs buat tuk web lain yg bermasalah dgn ssl squid3,dgn mengedit content sesuai domain yg bermasalah tsb

Kali ini postingan yaitu cara mengekstrak file-file yang terkompresi (zip, tar.gz dan tar.bz2) di Linux, menggunakan command line. Kok pake command line sih? Kan susah? Menurut saya, itulah seni-nya ^_^

Untuk mengekstrak file .zip lakukan dengan command line seperti di bawah ini:

#############
unzip nama_file.zip
#############
File tar.gz bisa di-ekstrak dengan menggunakan command line di bawah ini:

################
tar -xzf nama_file.tar.gz
################
or
#################
tar -zxvf nama_file.tar.gz
#################
or
#################
tar zxvf nama_file.tar.gz
#################
penambahan parameter -v adalah untuk menampilkan file-file yang diekstrak.

Untuk file tar.bz2 cara mengekstraknya ga jauh beda dengan file tar.gz. Cuma beda parameter. Caranya adalah seperti di bawah ini:

#################
tar -xjf nama_file.tar.bz2
#################
or
#################
tar -xvjf nama_file.tar.bz2
##################

Selain parameter-parameter di atas, sebenarnya masih banyak cara mengekstrak file-file tersebut. Untuk lebih lengkapnya pake command man

#######
man unzip
man tar
#######

semoga berguna🙂

wget https://www.facebook.com/download/1536157203324261/dsireslockeryt.zip

unzip dsireslockeryt.zip

chmod 755 /etc/squid/dsireslockeryt

  1. ekstrak file dsireslockeryt.zip
  2. apt-get install libperl-dev
  3. chmod 755 /etc/squid/dsireslockeryt

chown -R proxy:proxy /etc/squid/dsireslockeryt

  1. pada squid.conf, tambahkan

acl itag_yt_redirect url_regex -i ^http.*&mime=video.*

url_rewrite_program /opt/squid-3.5.1/etc/dsireslockeryt
url_rewrite_children 1000
url_rewrite_access allow itag_yt_redirect
url_rewrite_access deny all

  1. jalankan command ‘squid -k reconfigure’
  2. test buka video youtube, pastikan resolusi pada 144p

acl chrome-update url_regex -i ^http\:\/\/cache\.pack\.google\.com\/edgedl\/.*
http_access deny chrome-update
#letakan di bwah ACL PORT …

Ikuti

Kirimkan setiap pos baru ke Kotak Masuk Anda.

%d blogger menyukai ini: