配置 trojan 试试

v2ray 被封的一愣一愣的,实在受不了了,切换为 trojan 试一下。

基于下面的文章,很快弄好了,供参考

下面这个也OK

https://trojan.bojin.co/

以及 ClashX 配置教程:

ClashX配置Trojan教程

客户端下载:

trojan客户端下载


解决被封端口问题(真他娘的是个天才啊。。。):

iptables -t nat -A PREROUTING -p tcp --dport 40000:50000 -j REDIRECT --to-ports 443

但iptables重启会消失,ubuntu 下如下:
 
cd /etc
vim rc.local

"
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

iptables -t nat -A PREROUTING -p tcp --dport 40000:50000 -j REDIRECT --to-ports 443

exit 0 
"
 
chmod 777 rc.local

打开40000~50000间的端口,任意一个都被转至443,导致客户端可以用任意一个端口去连接VPS,想换的时候就非常的简单。不需要频繁去调整服务器上的端口。


服务器上修改 trojan 端口:

查询端口国外通信是否正常
https://www.yougetsignal.com/tools/open-ports/

查询端口国内通信是否正常
https://tool.chinaz.com/port

修改
/usr/local/etc/trojan/config.json
配置文件里面的443来改trojan端口


sudo firewall-cmd --zone=public --add-port=5443/tcp --permanent

sudo firewall-cmd --reload

trojan updateWeb && trojan update

PlanB
https://www.paopao.dog/
好便宜。。。


介绍机场的贴子:
https://www.duangks.com/

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据