[GH-ISSUE #2519] do we have Sub domain to TCP feature? #2001

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

Originally created by @infinitysky on GitHub (Aug 8, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2519

The solution you want

by using a sub domain to proxy TCP connection
使用 2级域名的方式 代理TCP 连接

Alternatives considered

How to implement this function

frpc.ini

[mysql]
type = tcp
local_ip = 127.0.0.1
local_port = 9899
custom_domains = mysql1

[mysql]
type = tcp
local_ip = 127.0.0.1
local_port = 9899
custom_domains = mysql2

After that. I could access to the mysql server by using the following link
在此之后,使用 如下连接即可访问 mysql 服务器

mysql1.domainname.com:3306

mysql2.domainname.com:3306

Application scenarios of this function

when using layer 4 proxy in a mass production environment, the remote port from the server is not enough to handling the hosts.

I have over 200 clients now... and each client could have 2-3 terminal machine , also each terminal needs 3 ports to expose.... there for a sub-domain connection will be an ideal solution

correct me, if we got similar solution already....

I have tried tcpmuxhttpconnect and secret_tcp, they are not works in this scenario..

thanks for your time and help, have a nice day

简述:
由于目前我有将近200+ (还在增长中)的客户,每个客户基本上拥有 2-3台 终端,于此同时每个终端至少有2-3个服务端口需要开放,因此只在 服务器上维护端口号远远不够。。。我已经尝试了很多方式比如 tcpmuxhttpconnect 和 secret_tcp,但是这些都不满足需求。。
因此请问有没有合适的方式来满足这类需求?
非常感谢 诸位的时间和帮助, 谢谢

Originally created by @infinitysky on GitHub (Aug 8, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2519 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> **The solution you want** <!--A clear and concise description of the solution you want. --> by using a sub domain to proxy TCP connection 使用 2级域名的方式 代理TCP 连接 **Alternatives considered** <!--A clear and concise description of any alternative solutions or features you have considered. --> **How to implement this function** <!--Implementation steps for the solution you want. --> `frpc.ini` ``` [mysql] type = tcp local_ip = 127.0.0.1 local_port = 9899 custom_domains = mysql1 ``` ``` [mysql] type = tcp local_ip = 127.0.0.1 local_port = 9899 custom_domains = mysql2 ``` After that. I could access to the mysql server by using the following link 在此之后,使用 如下连接即可访问 mysql 服务器 `mysql1.domainname.com:3306` `mysql2.domainname.com:3306` **Application scenarios of this function** <!--Make a clear and concise description of the application scenario of the solution you want. --> when using layer 4 proxy in a mass production environment, the remote port from the server is not enough to handling the hosts. I have over 200 clients now... and each client could have 2-3 terminal machine , also each terminal needs 3 ports to expose.... there for a sub-domain connection will be an ideal solution correct me, if we got similar solution already.... I have tried tcpmuxhttpconnect and secret_tcp, they are not works in this scenario.. thanks for your time and help, have a nice day 简述: 由于目前我有将近200+ (还在增长中)的客户,每个客户基本上拥有 2-3台 终端,于此同时每个终端至少有2-3个服务端口需要开放,因此只在 服务器上维护端口号远远不够。。。我已经尝试了很多方式比如 tcpmuxhttpconnect 和 secret_tcp,但是这些都不满足需求。。 因此请问有没有合适的方式来满足这类需求? 非常感谢 诸位的时间和帮助, 谢谢
gitea-mirror 2026-05-05 13:17:38 -06:00
Author
Owner

@xilu0 commented on GitHub (Aug 12, 2021):

where is the main domain?

<!-- gh-comment-id:897500344 --> @xilu0 commented on GitHub (Aug 12, 2021): where is the main domain?
Author
Owner

@infinitysky commented on GitHub (Aug 13, 2021):

where is the main domain?

sorry I am not sure what you mean,

I did A record configuration to my frp server

<!-- gh-comment-id:898484096 --> @infinitysky commented on GitHub (Aug 13, 2021): > where is the main domain? sorry I am not sure what you mean, I did A record configuration to my frp server
Author
Owner

@github-actions[bot] commented on GitHub (Sep 13, 2021):

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

<!-- gh-comment-id:917745685 --> @github-actions[bot] commented on GitHub (Sep 13, 2021): 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#2001
No description provided.