PFsense Refresh.Conf

This summary is not available. Please click here to view the po...

PFsense Storeurl.PL new

/usr/local/etc/squid/storeurl.pl #!/usr/bin/perl # $Rev$ # by chudy_fernandez@yahoo.com # Youtube updates at http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion $|=1; while (<>) {     @X = split;         $x = $X[0] . " ";         $_ = $X[1];         $u = $X[1];                         #profile.ak.fbcdn.net/hprofile-ak-xxx/xxx.jpg if (m/^http:\/\/profile.ak.fbcdn.net\/hprofile-ak-[a-z]{3}[0-9]\/(.*)/)...

PFsense include.conf new

/usr/local/etc/squid/include.conf # $Rev$ acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf|fid)\? acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]* acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3} acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$ acl store_rewrite_list_domain_CDN...

Proxy Server

yum -y install squid Loading "installonlyn" pluginLoading "fastestmirror" pluginSetting up Install ProcessSetting up repositoriesbase  100% |=========================| 1.1 kB 00:00 updates  100% |=========================|...

Mikrotik 2.9.27 Web-Proxy Cache Full

# CAche Full Mikrotik/ ip firewall mangleadd chain=output protocol=tcp src-port=3128 content="X-Cache: HIT" \    action=mark-connection new-connection-mark=Cache-Connection \    passthrough=yes comment="Cache-Full" disabled=noadd chain=output connection-mark=Cache-Connection action=mark-packet \    new-packet-mark=Cache-Packet passthrough=yes comment="" disabled=no/ queue treeadd name="CACHE-FULL" parent=global-out packet-mark=Cache-Packet limit-at=0 \    queue=ethernet-default priority=8...

4X WAN Load Balancing PCC method

/ip address add address=172.16.0.1/16 broadcast=172.16.255.255 comment="" disabled=no interface=Local network=172.16.0.0 add address=192.168.1.2/24 broadcast=192.168.1.255 comment="" disabled=no interface=WAN1 network=192.168.1.0 add address=192.168.2.2/24 broadcast=192.168.2.255 comment="" disabled=no interface=WAN2 network=192.168.2.0 add address=192.168.3.2/24 broadcast=192.168.3.255 comment="" disabled=no interface=WAN3 network=192.168.3.0 add address=192.168.4.2/24 broadcast=192.168.4.255 comment="" disabled=no interface=WAN4 network=192.168.4.0 /ip...

MIKROTIK 2X WAN LoadBalancing PCC Method

/ip address add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 interface=WAN1 add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=WAN2 /ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=221.132.112.8,8.8.8.8 /ip firewall mangle add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn add chain=input in-interface=WAN2 action=mark-connection...

2 WAN loadbalancing nth method

/ip address add address=192.168.1.3/24 network=192.168.1.0 broadcast=192.168.1.255 interface=WAN1 comment="" disabled=no add address=192.168.2.3/24 network=192.168.2.0 broadcast=192.168.2.255 interface=WAN2 comment="" disabled=no add address=10.10.0.1/24 network=10.10.0.0 broadcast=10.10.0.255 interface=internal comment="" disabled=no /ip firewall mangle add chain=prerouting in-interface=internal connection-state=new nth=2,1 action=mark-connection new-connection-mark=conn1 passthrough=yes comment="" disabled=no add chain=prerouting in-interface=internal...

StoreURL

#!/usr/bin/perl # This script is NOT written or modified by me, I only copy pasted it from the internet. # It was First originally Writen by chudy_fernandez@yahoo.com # & Have been modified by various persons over the net to fix/add various functions. # Like For Example modified by member of comstuff.net to satisfy common and dynamic content. # th30nly @comstuff.net a.k.a invisible_theater , and possibly other people too. # For more info, http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube # Adeel Ahmed / adeelkml1 @ gmail . com $|=1; while...

squid conf for youtube caching

This summary is not available. Please click here to view the po...

Nginx Conf(Updated)

# This config file is not written by me, # My Email address is inserted Just for tracking purposes # For more info, visit http://code.google.com/p/youtube-cache/ # Syed Jahanzaib / aacable [at] hotmail.com user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip...

Nginx Rb(Updated)

#!/usr/bin/env ruby1.8 # This script is not written by me, # My Email address is inserted Just for tracking purposes # For more info, visit http://code.google.com/p/youtube-cache/ # Syed Jahanzaib / aacable [at] hotmail.com # url_rewrite_program <path>/nginx.rb # url_rewrite_host_header off require "syslog" require "base64" class SquidRequest attr_accessor :url, :user attr_reader :client_ip, :method def method=(s) @method = s.downcase end def client_ip=(s) @client_ip = s.split('/').first end end def read_requests # URL <SP> client_ip...

cmand

1:Create file touch /etc/fw.sh 2:Change permissions chmod +x /etc/fw.sh 3:Edit File nano /etc/fw.sh (Add the script simple internet sharing) 4:Run /etc/fw.sh 5:Place shortcut /etc/rc.local 6:Upgrade DNS apt-get install dnsmasq 7:Update system apt-get update 8:Install Squid apt-get install squid 9:Edit squid.conf nano /etc/squid/squid.conf (Add the script squid.conf) 10:Install Nginx apt-get install nginx 11:Edit Nginx.conf nano /etc/nginx/nginx.conf (Add the script Nginx.conf) 12:Create directories to hold cache files mkdir /usr/local/www mkdir...

World