zhiyi7 / gfw-pac Goto Github PK
View Code? Open in Web Editor NEW科学上网。通过 gfwlist 和** IP 地址生成 PAC(Proxy auto-config) 文件。对存在于 gfwlist 的域名和解析出的 IP 在国外的域名使用代理。
License: Other
科学上网。通过 gfwlist 和** IP 地址生成 PAC(Proxy auto-config) 文件。对存在于 gfwlist 的域名和解析出的 IP 在国外的域名使用代理。
License: Other
利用v2rayN客户端,手动指定了pac文件位置,但是好像没起什么作用?
能说下具体如何配置么?
我想把gfw名单放在我的vps里面,让别人使用我的ip时,无法访问被gfw墙的域名,因为我的ip只用来代理电商,大佬指点一下怎么做到跟操作的
felixonmars/dnsmasq-china-list#345
badafans/better-cloudflare-ip#56
这里过来的讨论。
一直是在手动作这事儿,效果很好
Traceback (most recent call last):
File "gfw-pac.py", line 289, in
main()
File "gfw-pac.py", line 273, in main
direct_rule = direct_rule.splitlines(False)
AttributeError: 'NoneType' object has no attribute 'splitlines'
环境:osx10.11.4 Python 2.7.10
||googleapis.com
@@||clientservices.googleapis.com
@@||fonts.googleapis.com
@@||khm.googleapis.com
@@||khm0.googleapis.com
@@||khm1.googleapis.com
@@||khm2.googleapis.com
@@||khm3.googleapis.com
@@||khmdb.googleapis.com
||storage.googleapis.com
@@||translate.googleapis.com
@@||update.googleapis.com
@@||safebrowsing.googleapis.com
例如如上规则实际是有意义的,部分三级域名 wall 内可用,但经过 gfw-pac 处理后,只剩一个 "googleapis.com": 1,
if args.direct_rule:
directrule_parts = urlparse.urlsplit(args.direct_rule)
if not directrule_parts.scheme or not directrule_parts.netloc:
# It's not an URL, deal it as local file
with open(args.direct_rule, 'rb') as f:
direct_rule = f.read()
else:
# Yeah, it's an URL, try to download it
print 'Downloading user rules file from %s' % args.user_rule
direct_rule = urllib2.urlopen(args.direct_rule, timeout=10).read()
direct_rule = direct_rule.splitlines(False)
A small mistake which causes a error if direct_rule doesn't exist.
May change to this:
if args.direct_rule:
directrule_parts = urlparse.urlsplit(args.direct_rule)
if not directrule_parts.scheme or not directrule_parts.netloc:
# It's not an URL, deal it as local file
with open(args.direct_rule, 'rb') as f:
direct_rule = f.read()
else:
# Yeah, it's an URL, try to download it
print 'Downloading user rules file from %s' % args.user_rule
direct_rule = urllib2.urlopen(args.direct_rule, timeout=10).read()
direct_rule = direct_rule.splitlines(False)
else:
direct_rule = []
想针对不同的域名使用不同的代理是否有办法实现呢
可否增加广告部分域名,用于广告屏蔽。
比如,该如何让telegram的ip段使用代理呢?
谢谢🙏!
Telegram IP段
91.108.4.0/22
91.108.8.0/22
91.108.12.0/22
91.108.20.0/22
91.108.36.0/23
91.108.38.0/23
91.108.56.0/22
149.154.160.0/20
149.154.164.0/22
149.154.172.0/22
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.