mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4844] [Feature Request] frp服务器开放的端口遭受持续暴力攻击, 有解决办法吗(脚本或者插件)? #3825
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#3825
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 @siwind on GitHub (Jun 21, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4844
Describe the feature request
frp服务非常好用,但是对下述的暴力穷举攻击,
不知道有没有好的解决方法,下面是frps.log文件的部分输出:
(从windows日志看,这个暴力尝试的方法来自于 127.0.0.1的IP地址, 无法屏蔽IP,只能在frps服务端想办法了)
Describe alternatives you've considered
No response
Affected area
@xqzr commented on GitHub (Jun 21, 2025):
远离 IPv4
@siwind commented on GitHub (Jun 26, 2025):
解决方法有2种:
在服务器上部署插件,通过读取frps的日志,并判断如果10分钟之内的连接次数(失败)超过阈值(例如10次),
则封禁此攻击者IP。
(这种方式,保留了随时远程访问的能力,但是需要插件提供对暴力破解的封禁功能)
@XuruiPro commented on GitHub (Jul 7, 2025):
写个脚本监听frp日志,ip地址太频繁就把ip地址写入/etc/hosts.deny文件
@litrycn commented on GitHub (Jul 8, 2025):
frps 加个管理的插件
https://github.com/gofrp/plugin
@seaskydl commented on GitHub (Jul 16, 2025):
considering using fail2ban in frp server side.
@seaskydl commented on GitHub (Jul 16, 2025):
For frp project owner, suggest to have a server side function to mange connection security.
@github-actions[bot] commented on GitHub (Jul 30, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.