此教程使用的是 Ubuntu 18.04 x64
"run_type": "client",
"local_addr": "0.0.0.0",
"local_port": 1080,
"remote_addr": "219.22.49.201",
"remote_port": 22201,
"password": ["123456"],
ssl中的 sni 为主机SNI名,如 "jpo123.ovod.me",对应节点内容里的"服务器SNI"
"sni": "jpo123.ovod.me",
"verify": false,
"verify_hostname": false,
"cert": "",
cat > /etc/systemd/system/trojan.service <<-EOF
[Unit]
Description=trojan
After=network.target
[Service]
Type=simple
PIDFile=/usr/src/trojan/trojan.pid
ExecStart=/usr/src/trojan/trojan -c /usr/src/trojan/config.json -l /usr/src/trojan/trojan.log
ExecReload=/bin/kill -HUP \$MAINPID
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target
EOF
curl ip.sb --socks5 127.0.0.1:1080
, 查看结果是否为Trojan代理的IP
sudo apt-get install proxychains
sudo vi /etc/proxychains.conf
socks5 127.0.0.1 1080
curl -4 ip.sb
,将显示自己的IP
proxychains curl -4 ip.sb
,将显示Trojan代理的IP
proxychains
即可
proxychains npm install
wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
apt-get update
apt-get install google-chrome-stable