最新消息:

FRP内网穿透安装

网络 407浏览 0评论

首先下载frp服务端包,然后解压!

运行解压命令:

tar -zxf frp_0.58.0_linux_amd64.tar.gz

服务端frps.toml模板

# frps.toml
bindPort = 7000
# Specify a UDP port for KCP.
kcpBindPort = 7000

# 服务端将只接受 TLS链接
transport.tls.force = true
# 身份验证令牌
auth.token = "xxxxxx"

# Server Dashboard,可以查看frp服务状态以及统计信息
webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = "xxxxxx"

客户端frpc.toml模板

# frpc.toml
serverAddr = "xxx.xxx.xxx.xxx"
serverPort = 7000
auth.method = "token"
auth.token = "xxxxxx"

[[proxies]]
name = "rdp"
type = "tcp"
localIP = "127.0.0.1"
localPort = xxxx
remotePort = xxxx

Linux服务端自启动模板

[Unit]
Description=FRP Server Service
After=network.target syslog.target
Wants=network.target

[Service]
Type=simple
#启动服务的命令(此处写你的frps的实际安装目录)
ExecStart= /root/frp_0.58.0/frps -c /root/frp_0.58.0/frps.toml

[Install]
WantedBy=multi-user.target

Linux服务端自启动命令

重新加载配置

systemctl daemon-reload

开机自启动

systemctl enable frps

关闭开机自启动

systemctl disable frps

重启frps

systemctl restart frps

停止frps

systemctl stop frps

查看frps状态

systemctl status frps

您必须 登录 才能发表评论!