网络安全爱好者
Toggle navigation
主页
归档
标签
关于我
搭建Trojan节点
其他
2024-05-17 13:39:13
223
admin
其他
<p style="text-indent:2em">Trojan节点通常指的是在网络上部署的用于传输数据的代理服务器,但它们背后可能存在恶意目的。Trojan节点可以被用来隐藏恶意活动,如数据窃取、网络钓鱼、分发恶意软件等。</p> ## 1.下载安装trojan服务器 项目地址: https://github.com/p4gefau1t/trojan-go wget https://github.com/p4gefau1t/trojan-go/releases/download/v0.10.6/trojan-go-linux-amd64.zip 创建trojan配置文件: config.json ``` { "run_type": "server", "local_addr": "0.0.0.0", "local_port": 443, "remote_addr": "192.83.167.78", "remote_port": 80, "password": [ "your_awesome_password" ], "ssl": { "cert": "server.crt", "key": "server.key" } } ``` ./trojan-go -config config.json 运行 ``` 配置自启动服务 config.json配置文件中ssl应设置绝对路径 vi /etc/systemd/system/trojan.service [Unit] Description=trojan [Service] ExecStart=/root/trojan/trojan-go -config /root/trojan/config.json [Install] WantedBy=default.target 重新加载服务镜像 systemctl daemon-reload systemctl start trojan.service systemctl enable trojan.service ``` ## 2.购买域名,并使用Cloudflare托管域名 https://www.namesilo.com/account/ 购买域名 https://dash.cloudflare.com/ 托管域名 ## 3.给域名申请ssh证书 https://freessl.cn/ https://blog.freessl.cn/acme-quick-start/ (1)安装acme.sh ``` curl https://get.acme.sh | sh -s email=xl428150932@gmail.com 如果上面官方下载地址失败 或者 太慢,可以选用国内的备用地址 curl https://gitcode.net/cert/cn-acme.sh/-/raw/master/install.sh?inline=false | sh -s email=my@example.com 注意:安装完成后,再重新打开命令行(如果是 SSH,选择重新连接),以使acme.sh命令生效。 ``` (2)对域名进行授权 ``` acme.sh --install-cert -d trojan.xiaoliang3.top --ecc --key-file /root/trojan/server.key --fullchain-file /root/trojan/server.crt ``` ## 4.启动和关闭 ``` nohup ./trojan-go >/dev/null 2>&1 & ps -aux|grep trojan| grep -v grep kill -9 3600 ```
上一篇:
Webshell流量分析
下一篇:
Linux日志分析
导航窗格