frp
内网穿透工具
-
github: https://github.com/fatedier/frp.git https://github.com/fatedier/frp/releases/
-
help: https://sunnyrx.com/2016/10/21/simple-to-use-frp/
-
install
wget https://github.com/fatedier/frp/releases/download/v0.24.1/frp_0.24.1_linux_amd64.tar.gz
tar -zxvf frp_0.24.1_linux_amd64.tar.gz
cd frp_0.24.1_linux_amd64
rm -f frps
rm -f frps.ini
vi frpc.ini
- config
- 客户端配置服务器端端口和ssh端口
- start
-
server ./frps -c ./frps.ini
-
client ./frpc -c ./frpc.ini
- 后台运行
- server
nohup ./frps -c ./frps.ini &
- client
nohup ./frpc -c ./frpc.ini &
- 安全暴露内网服务
https://gofrp.org/docs/examples/stcp/
- 配置开机启动
#systemd配置文件路径:
/usr/lib/systemd/system/
- 添加frpc.service
- 添加frps.service
- 客户端日志目录:/var/log/frp/frpc.log
- 服务器日志目录:/var/log/frp/frps.log
- 日志文件若权限不够,修改frpc.service中的user为root或单独添加一个用户赋予权限
https://blog.csdn.net/qq_42952331/article/details/104810383
https://www.cnblogs.com/srczhang/p/12698685.html