mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1584] [Feature] Forwarding all ports with filter #1255
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#1255
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 @DKingAlpha on GitHub (Dec 28, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1584
实现了一个转发全部端口的功能,支持定期刷新,支持自动发现端口时使用各种条件过滤端口。
已在fork中实现,参考Commit
功能描述
所有端口映射
在frpc的配置文件中可以指定映射本机所有开放端口,并周期性地刷新端口配置,且支持各种黑名单避免转发敏感端口。
这个功能可以使你的机器表现得像拥有一个公网IP。目前只支持tcp与udp类型。
这一功能通过在
common段落中设置forward_all选项来实现。示例如下:为什么不使用VPN: vpn协议被ban成马了,速度奇慢
Feature Description
All ports mapping
Set
forward_allincommonsection to forward all open ports on your local machine, which refreshes periodically. Varieties of blacklist are provided to avoid forwarding any risky ports.This works like having assigned a shadow public IP address to frpc host. Connecting to frps is equivalent to directly connecting to your local machine. Currently only TCP&UDP are supported.
@deadlineOvO commented on GitHub (Jan 2, 2020):
这种有没有考虑过一些情况下 frpc 端口不能被 frps 按照相同端口反代的问题
例如说 frpc 有 ssh 的 22 ,但是在 frps 的 22 上已经有一个 sshd 了
@DKingAlpha commented on GitHub (Jan 3, 2020):
frps在这种情况下将对相应端口报错,不影响整体映射。
@fatedier commented on GitHub (Jan 5, 2020):
在这个项目中目前不会考虑这个功能了,但是你给用户提供了一种额外的选择,感觉很不错,后面考虑在此项目的文档上附加上链接,对这样的项目加以说明,有一些特殊需求的用户可以多一种选择。