[GH-ISSUE #3940] 使用tcpmux无法访问网站 #3128

Closed
opened 2026-05-05 14:01:28 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @MS1987 on GitHub (Jan 18, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3940

Bug Description

你好,我想使用tcpmux实现一台服务器链接多个客户机器,
运行后,服务端可以log出来test-tcp的链接信息:
2024/01/15 15:22:58 [I] [control.go:401] [471889f40a4b96ce] new proxy [test-tcp] type [tcpmux] success
但在浏览器上直接访问“120.79.122.236:7003”或者“machine-b.example.com:7003”都不能访问网页。之前测试ssh的端口是可以的。请问是什么设置问题么?

frpc Version

0.53.2

frps Version

0.53.2

System Architecture

linux/arm64

Configurations

服务端frps配置:

bindAddr = "0.0.0.0"
bindPort = 7002
tcpmuxHTTPConnectPort = 7003

webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin1235"
webServer.password = "admin1235"

客户端配置:

serverAddr = "120.79.122.236"
serverPort = 7002
tcpmuxHTTPConnectPort = 7003

[[proxies]]
name = "test-tcp"
type = "tcpmux"
multiplexer = "httpconnect"
customDomains = ["machine-b.example.com"]
localIP = "127.0.0.1"
localPort = 80
remotePort = 6000

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 @MS1987 on GitHub (Jan 18, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/3940 ### Bug Description 你好,我想使用tcpmux实现一台服务器链接多个客户机器, 运行后,服务端可以log出来test-tcp的链接信息: `2024/01/15 15:22:58 [I] [control.go:401] [471889f40a4b96ce] new proxy [test-tcp] type [tcpmux] success` 但在浏览器上直接访问“120.79.122.236:7003”或者“machine-b.example.com:7003”都不能访问网页。之前测试ssh的端口是可以的。请问是什么设置问题么? ### frpc Version 0.53.2 ### frps Version 0.53.2 ### System Architecture linux/arm64 ### Configurations 服务端frps配置: ``` bindAddr = "0.0.0.0" bindPort = 7002 tcpmuxHTTPConnectPort = 7003 webServer.addr = "0.0.0.0" webServer.port = 7500 webServer.user = "admin1235" webServer.password = "admin1235" ``` 客户端配置: ``` serverAddr = "120.79.122.236" serverPort = 7002 tcpmuxHTTPConnectPort = 7003 [[proxies]] name = "test-tcp" type = "tcpmux" multiplexer = "httpconnect" customDomains = ["machine-b.example.com"] localIP = "127.0.0.1" localPort = 80 remotePort = 6000 ``` ### 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:01:28 -06:00
Author
Owner

@xqzr commented on GitHub (Jan 20, 2024):

它需要 HTTP CONNECT 方法

<!-- gh-comment-id:1902275032 --> @xqzr commented on GitHub (Jan 20, 2024): 它需要 HTTP `CONNECT` 方法
Author
Owner

@JsonSong89 commented on GitHub (Jan 23, 2024):

网站应该使用http类型吧

<!-- gh-comment-id:1905546443 --> @JsonSong89 commented on GitHub (Jan 23, 2024): 网站应该使用http类型吧
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2024):

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

<!-- gh-comment-id:1942905740 --> @github-actions[bot] commented on GitHub (Feb 14, 2024): Issues go stale after 21d 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#3128
No description provided.