Trojan
Install
sudo pacman -S trojan
Client config
Edit /etc/trojan/config.json
Template config json file:
{
"run_type": "client",
"local_addr": "<local_addr>",
"local_port": <local_port>,
"remote_addr": "<remote_addr>",
"remote_port": <remote_port>,
"password": [
"<password>"
],
"log_level": 1,
"ssl": {
"verify": true,
"verify_hostname": true,
"cert":"",
"sni":"",
"alpn": [
"h2",
"http/1.1"
],
"reuse_session": true,
"session_ticket": false,
"curves": ""
}
}
Run
sudo systemctl start trojan
Then you can use the proxy with socks5://<local_addr>:<local_port>
Use proxychains
Edit /etc/proxychains.conf
Add socks5 <local_addr> <local_port> at the end of file.
# Example
[ProxyList]
socks5 127.0.0.1 1234
Use the proxy with proxychains <command>, such as proxychains curl google.com
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 conss'blogs!