Files
doc/docs/nas-skill/5-frpc.md
2024-01-01 13:14:51 +08:00

34 lines
933 B
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.
---
sidebar_position: 5
---
# 内网穿透
内网穿透就是无论你的盒子所处网络是否有公网IP无论是否在复杂内部网络下只要你的盒子能联通上网就可以做好穿透让你在异地随时访问和管理海纳思系统。
## 系统内置 frpc
海纳思系统hinas内置了一个frpc的穿透客户端软件
但是并没有开启,也没有运行。
终端输入 ```frpc -v``` 可以看到它的版本号
终端输入 ```systemctl enable frpc``` 可以设置为开机自启动
终端输入 ```systemctl start frpc``` 可以运行它
终端输入 ```systemctl status frpc``` 可以查看它运行后的状态是否正确
如果你不喜欢,可以完全删除它
```bash
sudo apt purge frpc-histb
```
当然,如果你哪天又想用了,就安装
```bash
sudo apt update && sudo apt install frpc-histb
```
## 开通 frpc 账号
## 手动配置案例