mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1239] [range:] cannot handle too many ports? #978
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#978
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tennyleaz on GitHub (May 9, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1239
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.27.0 on both sides.
What operating system and processor architecture are you using (
go env)?Ubuntu 16.04 amd64 server, Windows 10 amd64 client.
Configures you used:
frps.ini:
frpc.ini:
Steps to reproduce the issue:
./frps -c ./frps.ini./frpc -c ./frpc.iniDescribe the results you received:
Server error log like:
Client error log like:
Describe the results you expected:
I expect all ports 49000~65000 should be routed to client.
Additional information you deem important (e.g. issue happens only occasionally):
Always happen.
Can you point out what caused this issue (optional)
@ooiuv commented on GitHub (May 9, 2019):
You can test whether the following configuration can be executed successfully.
frpc.ini:
[common]
server_addr = server ip
server_port = 7000
[range:tcp_port]
type = tcp
local_ip = 127.0.0.1
local_port = 49000-49003
remote_port = 49000-49003
If the above configuration is executed successfully, FRP limits the number of ports mapped. You need to add the following configuration in frps.ini to increase the number of ports mapped.
frps.ini
max_pool_count = 10
@Tennyleaz commented on GitHub (May 9, 2019):
I tested ports 49000-49010, found no errors.
If I set
max_pool_count = 10, and I tested ports 49000-60000, leading to the similar error logs.Should I increase
max_pool_countfurther?@ooiuv commented on GitHub (May 9, 2019):
Max_pool_count is greater than the number of ports you want to map. Example: max_pool_count = 11002
@Tennyleaz
@fatedier commented on GitHub (Jun 4, 2019):
It's not optimized for too many ports. (Need high bandwidth and cpu and memory)
And I don't want to do that in the future. Why not VPN instead ?
@Tennyleaz commented on GitHub (Jun 11, 2019):
I want those ports open in order to stream games from my Xbox One remotely. My router seems can't handle a VPN client, so I would like to try frp instead.
@ooiuv commented on GitHub (Dec 27, 2019):
Sorry, I just saw the message, if you want to map too many ports, I suggest only VPN mode, I understand FRP is a bit like 1 to 1 mode