frp新版本frp_0.52.3设置

服务端

frps.toml

cp /root/frp/frpc /usr/bin

#bindPort = 7000
bindPort = 7000
 
# 如果指定了"oidc",将使用 OIDC 设置颁发 OIDC(开放 ID 连接)令牌。默认情况下,此值为"令牌"。auth.method = "token"
auth.method = "token"
# 身份验证令牌 auth.token = "密码"
auth.token = "密码"
 
# 配置 Web 服务器以启用 frps 的仪表板。
webServer.addr = "0.0.0.0"
webServer.port = 7001
webServer.user = "admin"
webServer.password = "密码"

frps.toml

serverAddr 修改为frps部署服务器ip

auth.token 需修改为frps部署服务器配置中的auth.token一致

vim /etc/systemd/system/frps.service

[Unit]
# 服务名称,可自定义
Description = frp server
After = network.target syslog.target
Wants = network.target

[Service]
Type = simple
# 启动frps的命令,需修改为您的frps的安装路径
ExecStart = /usr/bin/frps -c /root/frp/frps.toml

[Install]
WantedBy = multi-user.target

systemctl restart frps && systemctl enable frps

客户端

frpc.toml

cp /root/frp/frpc /usr/bin

vim /etc/systemd/system/frpc.service

[Unit]
# 服务名称,可自定义
Description = frp server
After = network.target syslog.target
Wants = network.target

[Service]
Type = simple
# 启动frps的命令,需修改为您的frps的安装路径
ExecStart = /usr/bin/frpc -c /root/frp/frpc.toml

[Install]
WantedBy = multi-user.target

frpc.toml

serverAddr = "*.*.*.*"
serverPort = 7000

# 如果指定了"oidc",将使用 OIDC 设置颁发 OIDC(开放 ID 连接)令牌。默认情况下,此值为"令牌"。auth.method = "token"
auth.method = "token"
# 身份验证令牌 auth.token = "密码自行设置"
auth.token = "*密码"

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 22

[[proxies]]
name = "81"
type = "tcp"
localIP = "127.0.0.1"
localPort = 81
remotePort = 81
相关推荐
飞翔的佩奇2 分钟前
Java项目: 基于SpringBoot+mybatis+maven+mysql实现的图书管理系统(含源码+数据库+答辩PPT+毕业论文)
java·数据库·spring boot·mysql·spring·毕业设计·图书管理
dal118网工任子仪5 分钟前
94,【2】buuctf web [安洵杯 2019]easy_serialize_php
android·前端·php
大模型铲屎官35 分钟前
HTML5 技术深度解读:本地存储与地理定位的最佳实践
前端·html·html5·本地存储·localstorage·地理定位·geolocation api
〖是♂我〗36 分钟前
自定义数据集 使用scikit-learn中svm的包实现svm分类
开发语言·python
南玖yy1 小时前
C语言:整型提升
c语言·开发语言
iqay1 小时前
【C语言】填空题/程序填空题1
c语言·开发语言·数据结构·c++·算法·c#
lsx2024061 小时前
ECharts 样式设置
开发语言
一 乐1 小时前
基于vue船运物流管理系统设计与实现(源码+数据库+文档)
前端·javascript·数据库·vue.js·spring boot·后端·船运系统
m0_528723811 小时前
在React中使用redux
前端·javascript·react.js
傻小胖2 小时前
vue3中customRef的用法以及使用场景
前端·javascript·vue.js