Frp 内网穿透
source link: https://www.zhangyangyuan.com/notes/107499
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
frp 是一个专注于内网穿透的高性能的反向代理应用,支持 TCP、UDP、HTTP、HTTPS 等多种协议。可以将内网服务以安全、便捷的方式通过具有公网 IP 节点的中转暴露到公网。
查找最新版本. https://github.com/fatedier/frp/releases .
目前最新是 0.38
服务器端 FRPS 配置
解压 tar zxvf frp_0.38.0_linux_amd64.tar.gz
移到配置文件夹 mv frp_0.38.0_linux_amd64 /etc/frp
链接可执行文件到bin目录 ln -sv /etc/frp/frps /usr/bin/frps
配置可执行权限 chmod 755 /usr/bin/frps
配置 systemd 启动
- 编辑配置文件
vim /etc/frp/systemd/frps.service
[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
[Install]
WantedBy=multi-user.target
- 配置systemd启动
配置到启动目录 cp /etc/frp/systemd/frps.service /etc/systemd/system
重载systemd命令 systemctl daemon-reload
请对 /etc/frp/frps.ini
配置文件进行服务端配置。更多配置说明详见 https://gofrp.org/docs/examples/ssh/
配置开机启动
systemctl enable frps
启动 frps
systemctl start frps.service
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK