[GH-ISSUE #4721] 映射后客户端内网无法访问 #3727

Closed
opened 2026-05-05 14:23:25 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Little-pig-2399483979 on GitHub (Mar 22, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4721

Bug Description

如题,客户端成功把一些端口映射到有公网ip的服务器端后与客户端同局域网内的设备无法访问到客户端的所有端口,ping显示连接超时,但是通过映射后的公网能够正常访问客户端机子

frpc Version

frps Version

System Architecture

windows/amd64

Configurations

[common]
server_addr = 10.1.110.xx
server_port = 7000
#token = *** #此处和服务端统一

#此处名称可自定义
[ssh1]
#此处为协议,还有tcp、udp、http、https、stcp
type = tcp
local_ip = 127.0.0.1
#此处为本端开放的端口
local_port = 8080
#此处为公网地址转换的端口,此端口可任意调换
remote_port = 8080

#此处名称可自定义
[ssh2]
#此处为协议,还有tcp、udp、http、https、stcp
type = tcp
local_ip = 127.0.0.1
#此处为本端开放的端口
local_port = 8851
#此处为公网地址转换的端口,此端口可任意调换
remote_port = 8851

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 @Little-pig-2399483979 on GitHub (Mar 22, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4721 ### Bug Description 如题,客户端成功把一些端口映射到有公网ip的服务器端后与客户端同局域网内的设备无法访问到客户端的所有端口,ping显示连接超时,但是通过映射后的公网能够正常访问客户端机子 ### frpc Version 无 ### frps Version 无 ### System Architecture windows/amd64 ### Configurations [common] server_addr = 10.1.110.xx server_port = 7000 #token = *** #此处和服务端统一 #此处名称可自定义 [ssh1] #此处为协议,还有tcp、udp、http、https、stcp type = tcp local_ip = 127.0.0.1 #此处为本端开放的端口 local_port = 8080 #此处为公网地址转换的端口,此端口可任意调换 remote_port = 8080 #此处名称可自定义 [ssh2] #此处为协议,还有tcp、udp、http、https、stcp type = tcp local_ip = 127.0.0.1 #此处为本端开放的端口 local_port = 8851 #此处为公网地址转换的端口,此端口可任意调换 remote_port = 8851 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:23:25 -06:00
Author
Owner

@ghost commented on GitHub (Mar 25, 2025):

frpc.toml

server_addr = "10.1.110.xx"
server_port = 7000
#token = *** #此处和服务端统一

#此处名称可自定义
[[proxies]]
name="ssh1"
#此处为协议,还有tcp、udp、http、https、stcp
type = "tcp"
local_ip = "127.0.0.1"
#此处为本端开放的端口
local_port = 8080
#此处为公网地址转换的端口,此端口可任意调换
remote_port = 8080

#此处名称可自定义
[[proxies]]
name="ssh2"
#此处为协议,还有tcp、udp、http、https、stcp
type = "tcp"
local_ip = "127.0.0.1"
#此处为本端开放的端口
local_port = 8851
#此处为公网地址转换的端口,此端口可任意调换
remote_port = 8851
<!-- gh-comment-id:2750989132 --> @ghost commented on GitHub (Mar 25, 2025): frpc.toml ```toml server_addr = "10.1.110.xx" server_port = 7000 #token = *** #此处和服务端统一 #此处名称可自定义 [[proxies]] name="ssh1" #此处为协议,还有tcp、udp、http、https、stcp type = "tcp" local_ip = "127.0.0.1" #此处为本端开放的端口 local_port = 8080 #此处为公网地址转换的端口,此端口可任意调换 remote_port = 8080 #此处名称可自定义 [[proxies]] name="ssh2" #此处为协议,还有tcp、udp、http、https、stcp type = "tcp" local_ip = "127.0.0.1" #此处为本端开放的端口 local_port = 8851 #此处为公网地址转换的端口,此端口可任意调换 remote_port = 8851 ```
Author
Owner

@github-actions[bot] commented on GitHub (Apr 9, 2025):

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

<!-- gh-comment-id:2787942177 --> @github-actions[bot] commented on GitHub (Apr 9, 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#3727
No description provided.