[GH-ISSUE #3036] frpc.ini依照配置port range & Envs在local_port上出錯 #2428

Closed
opened 2026-05-05 13:33:39 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Superarc543 on GitHub (Jul 28, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3036

Bug Description

錯誤的frpc.ini:
[common]
server_addr = 10.1.3.68
server_port = 7000

[node_exporter]
type = tcp
local_ip = 127.0.0.1
local_port = 9100-9200
remote_port = 9100-9200

我僅配置單個Port (9100) 完全正常!!!!

如我修改為{{ .Envs.NODE }} ,如用多個非範圍的Port (Ex. 9100,9111,9122)依然錯誤

錯誤只顯示:
failed to parse proxy node_exporter err: error local_poxy node_exporter, err: error local_port

frpc Version

0.44

frps Version

0.44

System Architecture

CentOS Linux release 7.9.2009 (Core)

Configurations

[common]
server_addr = 10.1.3.68
server_port = 7000

[node_exporter]
type = tcp
local_ip = 127.0.0.1
local_port = 9100-9200
remote_port = 9100-9200

Logs

failed to parse proxy node_exporter, err: error local_poxy node_exporter, err: error local_port

Steps to reproduce

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Superarc543 on GitHub (Jul 28, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3036 ### Bug Description 錯誤的frpc.ini: [common] server_addr = 10.1.3.68 server_port = 7000 [node_exporter] type = tcp local_ip = 127.0.0.1 **local_port = 9100-9200 remote_port = 9100-9200** 我僅配置單個Port (9100) 完全正常!!!! 如我修改為{{ .Envs.NODE }} ,如用多個非範圍的Port (Ex. 9100,9111,9122)依然錯誤 錯誤只顯示: failed to parse proxy node_exporter err: error local_poxy node_exporter, err: error local_port ### frpc Version 0.44 ### frps Version 0.44 ### System Architecture CentOS Linux release 7.9.2009 (Core) ### Configurations [common] server_addr = 10.1.3.68 server_port = 7000 [node_exporter] type = tcp local_ip = 127.0.0.1 **local_port = 9100-9200 remote_port = 9100-9200** ### Logs failed to parse proxy node_exporter, err: error local_poxy node_exporter, err: error local_port ### Steps to reproduce _No response_ ### Affected area - [X] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:33:39 -06:00
Author
Owner

@fuyoo commented on GitHub (Jul 28, 2022):

frpc could not support port-range

see doc

<!-- gh-comment-id:1197611957 --> @fuyoo commented on GitHub (Jul 28, 2022): frpc could not support port-range see [doc](https://gofrp.org/docs/reference/proxy/#tcp)
Author
Owner

@Becods commented on GitHub (Jul 28, 2022):

frpc could not support port-range

see doc

👆 Outdated content.

See Range ports mapping.

<!-- gh-comment-id:1197891338 --> @Becods commented on GitHub (Jul 28, 2022): > frpc could not support port-range > > see [doc](https://gofrp.org/docs/reference/proxy/#tcp) 👆 Outdated content. See [Range ports mapping](https://github.com/fatedier/frp#range-ports-mapping).
Author
Owner

@github-actions[bot] commented on GitHub (Aug 28, 2022):

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

<!-- gh-comment-id:1229346846 --> @github-actions[bot] commented on GitHub (Aug 28, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d 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#2428
No description provided.