This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
logger WAN up script executing | |
if test -s /tmp/dnsmasq.ads | |
then | |
rm /tmp/dnsmasq.ads | |
fi | |
logger Downloading China Lazy List | |
wget -O - http://adblock-chinalist.googlecode.com/svn/trunk/adblock-lazy.txt | | |
grep ^\|\|[^\*]*\^$ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache_peer localhost parent 7777 0 no-query | |
connect_timeout 2 seconds | |
prefer_direct on | |
acl gfw dstdom_regex -i "/usr/local/etc/squid/gfwed.txt" | |
never_direct allow gfw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache_peer localhost parent 7777 0 no-query | |
connect_timeout 2 seconds | |
prefer_direct on | |
acl gfw dstdom_regex -i "/usr/local/etc/squid/gfwed.txt" | |
never_direct allow gfw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache_peer localhost parent 7777 0 no-query | |
connect_timeout 2 seconds | |
prefer_direct on | |
acl gfw dstdom_regex -i "/usr/local/etc/squid/gfwed.txt" | |
never_direct allow gfw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
user=$1 | |
pass=$2 | |
realm=$3 | |
if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then | |
echo "Usage: $0 user password 'realm'"; | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#encoding: utf-8 | |
import urllib2 | |
from base64 import b64decode | |
LIST_URL = 'https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt' | |
BLACK_FILE = 'gfw.url_regex.lst' | |
WHITE_FILE = 'cn.url_regex.lst' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#nserver 202.99.96.68 | |
#nserver 8.26.56.26 | |
#nserver 8.20.247.20 | |
nscache 65536 | |
timeouts 1 5 30 60 180 1800 15 60 | |
service | |
daemon | |
#pidfile /var/run/3proxy.pid | |
log 3proxy.log D | |
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 代理服务器监听地址,用逗号分隔多个地址 | |
# 0.0.0.0 表示监听本机所有 IP 地址 | |
# PAC url 为 http://<listen>/pac,其中的代理服务器地址会根据 client 访问 ip 正确生成 | |
# 如果使用端口映射来将 COW 的服务提供到外网,请参考高级选项中的 addrInPAC 选项 | |
listen = 127.0.0.1:7777 | |
# 日志文件路径,如不指定则输出到 stdout | |
logFile = logFile.txt | |
# COW 默认仅对被墙网站使用二级代理 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client=yes | |
compression=zlib | |
;session = 1800 | |
verify = 0 | |
;pid = /var/run/stunnel.pid | |
;debug = 7 | |
;output = stunnel.log | |
socket = l:TCP_NODELAY=1 | |
socket = r:TCP_NODELAY=1 | |
socket = l:SO_LINGER=1:1 |
NewerOlder