realm/README.md

51 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 参考自https://www.nodeseek.com/post-183613-1 ,在此感谢大佬的教程
说明:在大佬的基础上添加了检测更新和重启服务等功能
## 脚本界面预览:
```
欢迎使用realm一键转发脚本
=================
1. 部署环境
2. 添加转发
3. 添加端口段转发
4. 删除转发
5. 启动服务
6. 停止服务
7. 重启服务
8. 检测更新
9. 一键卸载
0. 退出脚本
=================
realm 状态:未安装
realm 转发状态:未启用
```
## 一键脚本:
国内或v6 only可用推荐
```
curl -L https://host.wxgwxha.eu.org/https://raw.githubusercontent.com/wcwq98/realm/refs/heads/main/realm.sh -o realm.sh && chmod +x realm.sh && sudo ./realm.sh
```
```
curl -L https://raw.githubusercontent.com/wcwq98/realm/refs/heads/main/realm.sh -o realm.sh && chmod +x realm.sh && sudo ./realm.sh
```
##默认配置文件(脚本在首次部署时会自动添加)
[network]
no_tcp = false #是否关闭tcp转发
use_udp = true #是否开启udp转发
#参考模板
# [[endpoints]]
# listen = "0.0.0.0:本地端口"
# remote = "落地鸡ip:目标端口"
[[endpoints]]
listen = "0.0.0.0:1234"
remote = "0.0.0.0:5678"
## 如需其他更多配置请参考官方文档: https://github.com/zhboner/realm