中国防火长城 Great Firewall of China ,缩写 GFW ,是中国古代军事防御工程在现代互联网领域的延伸。方滨兴,中国工程院院士,前北京邮电大学校长,现中国网络空间安全协会理事长,中国防火墙总设计师。本文不评价防火墙和方院士,只从技术角度讨论如何搭梯翻墙。
狗代
影梭
影梭是 clowwindy 开发的软件,自己使用了很长一段时间后觉得不错才共享出来。
服务端配置
服务端配置文件位于 /etc/shadowsocks/config.json
。
{
"server":"xxx.xxx.xxx.xxx",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8848":"password_1",
"8849":"password_2",
"8850":"password_3"
},
"method":"aes-256-cfb",
"timeout":300
}
个人建议弃用默认端口 15734 。
影梭客户端配置
依照服务端配置填写。
PAC
PAC(Proxy auto-config) 的核心是两个 txt 文件, pac.txt
和 user-rule.txt
,前者自动更新,后者手动更新。
在小飞机的右键菜单里点击编辑 GFWList 的用户规则,即可打开 user-rule.txt
,添加自己的 PAC 。
PAC 语法照搬了 Adblock Plus ,细则如下:
- 支持通配符,比如
*.example.com/*
,*
可以省略,写成.example.com/
。 - 支持正则表达式,用
\
包裹, 如\[\w]+:\/\/example.com\
。 - 以
@@
开头的例外规则,如@@*.example.com/*
。 |
表示地址开始或结尾 ,如|http://example.com
、example.com|
。||
表示任意协议,如||example.com
能匹配http://example.com
、https://example.com
、ftp://example.com
等地址。!
表示注释。^
表示除了字母、数字、_-.%
之外的任何字符。
编辑完别忘了从 GFWList 更新本地 PAC 使之生效。
薇儿蕾/薇儿飞
影梭是一个纯粹的代理工具,而薇儿蕾是用于搭载代理工具的平台。 clowwindy 被喝茶之后退出江湖,导致薇儿蕾维护困难,原社区另起炉灶,称为薇儿飞。因许可理念之争,个别社区成员单独创建了叉蕾,目前是薇儿蕾的超集,后续可能会走不同的发展路线。
context deadline exceeded
rejected common/drain: common/drain: drained connection > proxy/vmess/encoding: invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received. You can still disable this security feature with environment variable v2ray.vmess.aead.forced = false . You will not be able to enable legacy header workaround in the future.
解决方法:设置alterID = 0
。