Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **** squid.conf ***
- refresh_all_ims on
- reload_into_ims on
- acl tostoreid url_regex -i ^http.*mp4upload\.com:282\/.*\/video\.mp4
- acl patchpartial url_regex -i ^http.*patch.*garena
- acl patchpartial url_regex -i ^http.*garena.*patch
- acl patchpartial url_regex -i ^http:\/\/.*google\.com\/.*chrome.*\/(.*.(exe))
- range_offset_limit none range206 patchpartial
- range_offset_limit 128 KB range206 !patchpartial
- quick_abort_min 1 KB
- quick_abort_max 1 KB
- quick_abort_pct 95
- refresh_pattern -i ^https?\:\/\/squid\/(mp4upload|google\/video) 0 90% 432000 override-expire override-lastmod ignore-no-store ignore-must-revalidate ignore-private ignore-auth
- refresh_pattern -i .* 0 1% 1 override-expire override-lastmod ignore-no-store ignore-must-revalidate ignore-private ignore-auth
- store_id_bypass off
- store_id_extras "%{Referer}>h"
- store_id_program /etc/squid/storeid.pl
- store_id_children 2000 startup=30 idle=1
- store_id_access allow tostoreid
- store_id_access deny all
- **** storeid.pl ****
- #mp4upload
- } elsif ($url =~ m/^https?\:\/\/.*mp4upload\.com:282\/(.*\/video\.mp4)/) {
- @id = $1;
- if ($referer =~ m/^https?\:\/\/.*mp4upload\.com\/(embed-.*)/) {@id = $1;}
- $out="OK store-id=http://squid/mp4upload/@id";
- *** iptables ***
- #tproxy
- 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 PREROUTING -p tcp -m socket -j DIVERT
- iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3129
- iptables -t mangle -A PREROUTING -p tcp --dport 8080 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3129
- iptables -t mangle -A PREROUTING -p tcp --dport 8777 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3129
- iptables -t mangle -A PREROUTING -p tcp --dport 5050 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3129
- iptables -t mangle -A PREROUTING -p tcp --dport 182 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3129
- iptables -t mangle -A PREROUTING -p tcp --dport 282 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3127
- iptables -t mangle -A PREROUTING -p tcp --dport 443 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3127
- ip rule add fwmark 1 lookup 212
- ip route add local 0.0.0.0/0 dev lo table 212
- // 282 satu port dengan 443 //
- #intercept
- #iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3129
- #iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 3127
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement