trojan搭建

1
yum update ca-certificates
1
source <(curl -sL https://git.io/trojan-install)

症状:客户端能连上,一切正常,但是无法出境浏览网站。 排错:登录服务器查看日志,发现有cannot establish connection to remote server www.google.com:443: No route to ho报错记录。 Google搜索发现是因为VPS同时支持IPV4IPV6导致的,详情见:https://github.com/trojan-gfw/trojan/issues/327 解决方案:在/etc/gai.conf中增加一行precedence ::ffff:0:0/96 100,然后reboot大法。

1
bash <(curl -sL https://raw.githubusercontent.com/daveleung/hijkpw-scripts-mod/main/xray_mod1.sh)