推荐一种新的科学上网的各种方式(20180821)
http/2 proxy
推荐指数 ****
适用性 **
caddy forwardproxy模块,设置 probe_resistence 上网,配置浏览器后上网。
优势:原生http/2协议,与其它正常网络访问流量很难区分,相对速度最好。
缺点:重启浏览器后需要输入域名激活。
假设自己的vps已有域名(debian8/9, centos 7)
1984.nogfw.org,执行下面的脚本
```
export DOMAINNAME=1984.nogfw.org
mkdir caddy && cd caddy
curl https://getcaddy.com | bash -s personal http.forwardproxy
cat > Caddyfile <
$DOMAINNAME {
forwardproxy {
basicauth nogfw fbx2hell
probe_resistance nogfw.local
serve_pac /killfbx.pac
}
root /var/www/html
gzip
}
EOF
MYDIR=$( cd $( dirname -- "$0" ) > /dev/null ; pwd )
cat >/etc/systemd/system/caddy.service <
[Unit]
Description=caddy
[Service]
WorkingDirectory=$MYDIR
LimitNOFILE=16384
ExecStart=/usr/local/bin/caddy -agree -email yourmail@msn.com
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl restart caddy && journalctl -u caddy -f
```
将浏览器自动配置脚本设成 https://1984.nogfw.org/killfbx.pac 即可科学上网
深入配置:可选自行搭配gfwlist生成Pac使用。(https://github.com/sunyongmofang/gfwlist2pac)
Like my work? Don't forget to support and clap, let me know that you are with me on the road of creation. Keep this enthusiasm together!