Txray:https://github.com/hsernos/Txray
Project X core: https://github.com/XTLS/Xray-core
下载
linux上,你需要下载上面两个,将 Project X core 的内容放在 Txray 下。
机场推荐(最良心的一个)
为什么选择它?注册后,就有很多免费流量,且流量是按量买的且非常便宜,速度也很快。
猪猪机场: https://zhuzhu12.xyz/auth/register?code=WTcB
加入订阅
./Txray #进入交互
# 添加订阅链接为https://sublink.com,并命名为test >>> sub add <订阅链接> -r 猪猪机场 #查看订阅 >>> sub +------+-------+---------------------+----------+ | 索引 | 别名 | URL | 是否启用 | +------+-------+---------------------+----------+ | 1 | test1 | https://sublink.com | true | | 2 | test2 | https://sublink.com | true | | 3 | test3 | https://sublink.com | true | | 4 | test4 | https://sublink.com | true | | 5 | test5 | https://sublink.com | true | | 6 | test6 | https://sublink.com | true | +------+-------+---------------------+----------+ #从启用的订阅且不使用代理更新节点 >>> sub update-node #添加过滤规则 >>> filter geosite:cn >>> filter geoip:cn # 自动选择所有节点中访问YouTube延迟最小的那个节点 >>> run all # 停止上次启动的xray-core进程 >>> stop
#命令文档:https://github.com/hsernos/Txray#%E5%91%BD%E4%BB%A4%E6%80%BB%E8%A7%88
启动代理
nohup ./xray & #使用nohup让程序在后台运行
或
./Txray #进入交互
>>> run all
关闭代理
./Txray #进入交互
>>> stop
linux上配置代理
为什么 需要 ? 因为上面只是软件给你开了代理服务,你要使用,需要在系统上配置代理。