本文主要介绍Trojan-GFW的搭建以及使用方式,以及一些注意点等。

johnrosen1/trojan-gfw-script
This script will help you set up a trojan-gfw server in an extremely fast way. - johnrosen1/trojan-gfw-script
trojan-gfw/trojan
An unidentifiable mechanism that helps you bypass GFW. - trojan-gfw/trojan

附1:Trojan不使用Websocket,不支持Cloudflare CDN。


一。购买必需品

(1). 购买服务器(VPS)

这个随便谷歌,百毒一大堆,不想多说,系统仅推荐Debian10,然后下载Xshell6或者Termius SSH连接就行。例如。

Kamatera – Performance Cloud Infrastructure
Deploy a High Performance, Production, Worldwide Cloud Infrastructure in less than 60 seconds. Sign Up and Try Now - 30 Days Totally Free.
这家的香港伺服器对移动友好 1MONTH300 优惠码首月免费

(2).购买域名并添加A解析,详情请自己研究。


三。一键建立并配置Trojan服务器(强烈推荐,记得去Github给个star !!!)

apt-get update && apt-get install sudo curl -y && wget https://raw.githubusercontent.com/johnrosen1/vpstoolbox/master/vps.sh && sudo bash vps.sh

附1:推荐使用api申请证书。

附2:若已有证书,请放置于/etc/trojan/处,脚本会自动跳过域名解析验证,申请证书以及acme.sh安装


四。客户端配置

  1. Windows

(1)从github下载预编译release并解压,然后安装依赖库。

trojan-gfw/trojan
An unidentifiable mechanism that helps you bypass GFW. - trojan-gfw/trojan

然后打开网站中生成的config,然后复制黏贴至config.json即可,双击trojan.exe运行。

Proxy SwitchyOmega
Manage and switch between multiple proxies quickly & easily.
omega方法(全局代理)
FelisCatus/SwitchyOmega
Manage and switch between multiple proxies quickly & easily. - FelisCatus/SwitchyOmega

PS: Clash已支援Trojan,V2ray分流方案已弃用。


2.  移动客户端

注:安卓客户端目前不支持添加多个节点,去广告,负载均衡等功能。

trojan-gfw/igniter
A trojan client for Android (UNDER CONSTRUCTION). Contribute to trojan-gfw/igniter development by creating an account on GitHub.
安卓客户端
‎Shadowrocket
Rule based proxy utility client for iPhone/iPad. - Capture all HTTP/HTTPS/TCP traffic from any applications on your device, and redirect to the proxy server. - Record and display HTTP, HTTPS, DNS requests from your iOS devices. - Configure rules using domain match, domain suffix, domain keyword, CI…
苹果客户端

3. Macos

方法一:安装homebrew并运行下属命令

Homebrew
The missing package manager for macOS (or Linux).
brew tap trojan-gfw/homebrew-trojan
brew install trojan

并使用 brew services 来启动Trojan

方法二:下载预编译二进制文件并运行


4. 树莓派(Ubuntu arm64系统)

sudo add-apt-repository ppa:greaterfire/trojan
sudo apt-get install trojan -y
sudo nano /etc/trojan/config.json
config具体配置和桌面端一样
树莓派4B折腾记
树莓派相比于动辄几千上万的x86-64服务器而言,价格低廉,CPU效能虽远不及高端的x86-64芯片组,但对于像我一样的个人用户而言作为本地服务器而言已然足够,毕竟如果效果一样,谁又乐意花费额外的金钱呢? 本文主要为我个人从树莓派到手,安装,使用等方面的经历,仅供参考。

五.题外话

Trojan救不了烂线路 --鲁迅