收起左侧

使用Docker部署frp双端汉化版

10
回复
1951
查看
[ 复制链接 ]

86

主题

97

回帖

0

牛值

小有名气

2025-11-6 19:25:39 显示全部楼层 阅读模式

frp 是一款开源的内网穿透软件,需要自己有服务器,市面上一些内网穿透的客户端也是支持frp的。

  • 原项目地址 最新版
    • 官网 https://gofrp.org/zh-cn/
    • GitHub仓库 https://github.com/fatedier/frp
  • 我汉化和构建docker镜像的仓库 最新版
    • GitHub仓库 https://github.com/Firfr/frp_zh
    • Gitee仓库 https://gitee.com/firfe/frp_zh

如果这个项目有帮到你。欢迎start。也厚颜期待您的打赏。

有需要帮忙部署这个项目的朋友,一杯奶茶,即可程远程帮你部署,需要可联系。
微信号 E-0_0-
闲鱼搜索用户 明月人间
或者邮箱 firfe163@163.com

服务端

镜像

  • AMD64镜像
    swr.cn-north-4.myhuaweicloud.com/firfe/frps:0.65.0
    
  • ARM64镜像
    swr.cn-north-4.myhuaweicloud.com/firfe/frps:0.65.0-arm64
    

配置文件

文件名称 frps.toml

示例内容

# frps.toml - 服务端配置
# 基础配置
## frps 服务端-客户端 通讯端口
bindPort = 7000

# 限制使用端口
allowPorts = [
  { single = 3061 },
  { start = 3000, end = 3050 }
]

# 安全配置
[auth]
method = "token"
## 请修改为复杂密码
token = "frps"

# Web 管理界面
[webServer]
addr = "0.0.0.0"
## 管理界面端口
port = 7500
user = "frps"
password = "frps"

# 日志配置
[log]
to = "./frps.log"
level = "info"
maxDays = 7

部署文件 compose.yaml

name: frps
services:
  frps:
    container_name: frps
    image: swr.cn-north-4.myhuaweicloud.com/firfe/frps:0.65.0
    network_mode: host
    restart: always
    tty: true
    stdin_open: true
    volumes:
      - ./frps.toml:/etc/frp/frps.toml

客户端

镜像

  • AMD64镜像
    swr.cn-north-4.myhuaweicloud.com/firfe/frpc:0.65.0
    
  • ARM64镜像
    swr.cn-north-4.myhuaweicloud.com/firfe/frpc:0.65.0-arm64
    

配置文件

文件名称 frpc.toml

# 服务端IP或域名
serverAddr = "127.0.0.1"
# 服务端通讯端口
serverPort = 7000

# 认证方式
auth.method = "token"
# token的值
auth.token = "frps"

# 网页界面
webServer.addr = "0.0.0.0"
## 端口
webServer.port = 7400
webServer.user = "用户名"
webServer.password = "密码"
webServer.pprofEnable = false

# 示例
[[proxies]]
name = "名称"
# 类型,建议TCP
type = "tcp"
# 本地ip
localIP = "127.0.0.1"
# 本地 端口
localPort = 2345
# 远程端口,不写动态分配
remotePort = 1212

部署文件 compose.yaml

name: frpc
services:
  frpc:
    container_name: frpc
    image: swr.cn-north-4.myhuaweicloud.com/firfe/frpc:0.65.0
    network_mode: host
    tty: true
    stdin_open: true
    volumes:
      - ./frpc.toml:/etc/frp/frpc.toml

收藏
送赞 1
分享

1

主题

6

回帖

0

牛值

江湖小虾

2025-11-7 10:31:02 显示全部楼层

为什么不考虑nps呢,面板可视化不是更方便吗?

nos那么垃圾,速度太慢了  详情 回复
2025-11-8 09:23
这个好像已经还几年没有更新了  详情 回复
2025-11-7 17:38

86

主题

97

回帖

0

牛值

小有名气

2025-11-7 17:38:40 楼主 显示全部楼层
吹神 发表于 2025-11-7 10:31
为什么不考虑nps呢,面板可视化不是更方便吗?

这个好像已经还几年没有更新了

3

主题

6

回帖

0

牛值

江湖小虾

fnOS1.0上线纪念勋章

2025-11-8 09:23:18 显示全部楼层
吹神 发表于 2025-11-7 10:31
为什么不考虑nps呢,面板可视化不是更方便吗?

nos那么垃圾,速度太慢了

0

主题

9

回帖

0

牛值

江湖小虾

2025-11-18 20:47:39 显示全部楼层

照抄这个文件,在腾讯服务器宝塔面板中布暑:启动失败,显示 read /etc/frp/frps.toml: is a directory 配置文件怎么改都不行,在目录下生成了一个frps.toml目录,把这个目录删除了,换成文件frps.toml,还是不行。

部署文件 compose.yaml

name: frps
services:
  frps:
    container_name: frps
    image: swr.cn-north-4.myhuaweicloud.com/firfe/frps:0.65.0
    network_mode: host
    restart: always
    tty: true
    stdin_open: true
    volumes:
      - ./frps.toml:/etc/frp/frps.toml

客户端

客户端在FNOS中成功。

权限问题,把宿主机 frps.toml 文件权限设置成 777  详情 回复
2025-11-25 20:54

6

主题

6

回帖

0

牛值

江湖小虾

2025-11-21 09:55:43 显示全部楼层

如果能再加个frps- panel就好了 多用户管理

86

主题

97

回帖

0

牛值

小有名气

2025-11-25 20:54:21 楼主 显示全部楼层
大山深处 发表于 2025-11-18 20:47
照抄这个文件,在腾讯服务器宝塔面板中布暑:启动失败,显示 read /etc/frp/frps.toml: is a directory  配 ...

要先创建一个文件 frps.toml 然后把这个文件映射到容器中的 /etc/frp/frps.toml 文件
这个报错
read /etc/frp/frps.toml: is a directory


是因为现在容器中 etc/frp/frps.toml 这个是一个目录,不是一个文件
我再去试试看看!  详情 回复
2025-11-26 10:18

0

主题

9

回帖

0

牛值

江湖小虾

2025-11-26 10:18:06 显示全部楼层
秦曱凧 发表于 2025-11-25 20:54
要先创建一个文件 frps.toml 然后把这个文件映射到容器中的 /etc/frp/frps.toml 文件
这个报错
read /etc/ ...

我再去试试看看!

1

主题

5

回帖

0

牛值

江湖小虾

2025-11-27 14:55:10 显示全部楼层

我不是不会配置,我是配置好以后仍然没有突破运营商的限速

无法突破运营商的限速,这个不是软件的问题,  详情 回复
2025-11-28 13:16

86

主题

97

回帖

0

牛值

小有名气

2025-11-28 13:16:13 楼主 显示全部楼层
StayHungryStayF 发表于 2025-11-27 14:55
我不是不会配置,我是配置好以后仍然没有突破运营商的限速

无法突破运营商的限速,这个不是软件的问题,

0

主题

5

回帖

0

牛值

江湖小虾

2025-11-30 10:56:20 显示全部楼层

感谢 是我需要的

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则