[GH-ISSUE #4818] 想映射多个端口 配置多个[[proxies]]部分只有最后一个[[proxies]]部分生效 #3804

Closed
opened 2026-05-05 14:26:03 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @luluQAQ on GitHub (May 27, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4818

Bug Description

只有最后一个proxies部分生效,服务端已经配置了allow_ports 并开启了TLS

frpc Version

v0.62.1

frps Version

v0.62.1

System Architecture

linux/arm64

Configurations

proxies
name = "service1"
type = "tcp"
local_ip = "127.0.0.1"
local_port = 8080
remote_port = 48080

proxies
name = "service2"
type = "tcp"
local_ip = "127.0.0.1"
local_port = 8081
remote_port = 48081

proxies
name = "service3"
type = "tcp"
local_ip = "127.0.0.1"
local_port = 8082
remote_port = 48082

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @luluQAQ on GitHub (May 27, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4818 ### Bug Description 只有最后一个[[proxies]]部分生效,服务端已经配置了allow_ports 并开启了TLS ### frpc Version v0.62.1 ### frps Version v0.62.1 ### System Architecture linux/arm64 ### Configurations [[proxies]] name = "service1" type = "tcp" local_ip = "127.0.0.1" local_port = 8080 remote_port = 48080 [[proxies]] name = "service2" type = "tcp" local_ip = "127.0.0.1" local_port = 8081 remote_port = 48081 [[proxies]] name = "service3" type = "tcp" local_ip = "127.0.0.1" local_port = 8082 remote_port = 48082 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [x] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:26:03 -06:00
Author
Owner

@Tangchunhai commented on GitHub (May 28, 2025):

我也遇到这个问题了,解决了。宝塔防火墙端口没开放,你看下是不是服务器端口,或装了宝塔端口没有开放。

<!-- gh-comment-id:2917124102 --> @Tangchunhai commented on GitHub (May 28, 2025): 我也遇到这个问题了,解决了。宝塔防火墙端口没开放,你看下是不是服务器端口,或装了宝塔端口没有开放。
Author
Owner

@luluQAQ commented on GitHub (May 29, 2025):

我也遇到这个问题了,解决了。宝塔防火墙端口没有开放,你看下是不是服务器端口,或者安装了宝塔端口没有开放。

就只有云服务提供的防护墙 系统内部没有防火墙的 不管怎么修改端口 它只有最后一个proxies块是生效的 很怪

<!-- gh-comment-id:2918303931 --> @luluQAQ commented on GitHub (May 29, 2025): > 我也遇到这个问题了,解决了。宝塔防火墙端口没有开放,你看下是不是服务器端口,或者安装了宝塔端口没有开放。 就只有云服务提供的防护墙 系统内部没有防火墙的 不管怎么修改端口 它只有最后一个[[proxies]]块是生效的 很怪
Author
Owner

@Tangchunhai commented on GitHub (May 29, 2025):

我也遇到这个问题了,解决了。宝塔防火墙端口没有开放,你看下是不是服务器端口,或者安装了宝塔端口没有开放。

就只有云服务提供的防护墙 系统内部没有防火墙的 不管怎么修改端口 它只有最后一个proxies块是生效的 很怪

你把服务器防火墙停止试下 看下端口有没有开启 我现在遇到的问题 就是太慢了

<!-- gh-comment-id:2919946261 --> @Tangchunhai commented on GitHub (May 29, 2025): > > 我也遇到这个问题了,解决了。宝塔防火墙端口没有开放,你看下是不是服务器端口,或者安装了宝塔端口没有开放。 > > 就只有云服务提供的防护墙 系统内部没有防火墙的 不管怎么修改端口 它只有最后一个[[proxies]]块是生效的 很怪 你把服务器防火墙停止试下 看下端口有没有开启 我现在遇到的问题 就是太慢了
Author
Owner

@Tangchunhai commented on GitHub (May 29, 2025):

还有就是,我看你的配置是下划线的,我用的是驼峰的,应该都支持吧

<!-- gh-comment-id:2919950380 --> @Tangchunhai commented on GitHub (May 29, 2025): 还有就是,我看你的配置是下划线的,我用的是驼峰的,应该都支持吧
Author
Owner

@github-actions[bot] commented on GitHub (Jun 13, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:2968638923 --> @github-actions[bot] commented on GitHub (Jun 13, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3804
No description provided.