[GH-ISSUE #1911] Max ports per client issue ? #1518

Closed
opened 2026-05-05 12:57:32 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @burkifaso on GitHub (Jul 20, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1911

I have specified in the server config file :

max_ports_per_client = 1

but I can still run few instances of frp clients on my windows machine and connect to the server..

as a client I'm running http proxy plugin .. below is client config

[common]
server_addr = xxxxxxxxx
server_port = 8200
protocol = tcp
token = 'xxxx'

[http_proxy]
type = tcp
remote_port = 0
plugin = http_proxy
plugin_http_user = xxxx
plugin_http_passwd = xxxx

why ?

Originally created by @burkifaso on GitHub (Jul 20, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1911 I have specified in the server config file : max_ports_per_client = 1 but I can still run few instances of frp clients on my windows machine and connect to the server.. as a client I'm running http proxy plugin .. below is client config ``` [common] server_addr = xxxxxxxxx server_port = 8200 protocol = tcp token = 'xxxx' [http_proxy] type = tcp remote_port = 0 plugin = http_proxy plugin_http_user = xxxx plugin_http_passwd = xxxx ``` why ?
Author
Owner

@fatedier commented on GitHub (Jul 20, 2020):

max_ports_per_client means limit the max ports one frpc can use.

<!-- gh-comment-id:661020595 --> @fatedier commented on GitHub (Jul 20, 2020): `max_ports_per_client` means limit the max ports one frpc can use.
Author
Owner

@burkifaso commented on GitHub (Jul 20, 2020):

thanks, but how to do it on the server side, allow client to made max one connection to server.

<!-- gh-comment-id:661025406 --> @burkifaso commented on GitHub (Jul 20, 2020): thanks, but how to do it on the server side, allow client to made max one connection to server.
Author
Owner

@fatedier commented on GitHub (Jul 20, 2020):

https://github.com/fatedier/frp/blob/master/doc/server_plugin.md

You can achieve more custom features by frp server plugin.

<!-- gh-comment-id:661046408 --> @fatedier commented on GitHub (Jul 20, 2020): https://github.com/fatedier/frp/blob/master/doc/server_plugin.md You can achieve more custom features by `frp server plugin`.
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#1518
No description provided.