[GH-ISSUE #4528] [Feature Request] 能否实现拒绝来自国外的IP #3576

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

Originally created by @jzxkkk on GitHub (Nov 8, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4528

Describe the feature request

检查日志时经常出现很多来自国外的IP
是否可以实现软件层面拒绝国外IP
还是只能通过iptables这种实现

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @jzxkkk on GitHub (Nov 8, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4528 ### Describe the feature request 检查日志时经常出现很多来自国外的IP 是否可以实现软件层面拒绝国外IP 还是只能通过iptables这种实现 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@xqzr commented on GitHub (Nov 9, 2024):

可以,但需要考虑性能

<!-- gh-comment-id:2466161664 --> @xqzr commented on GitHub (Nov 9, 2024): 可以,但需要考虑**性能**
Author
Owner

@88489754 commented on GitHub (Nov 10, 2024):

完全可以的啊,如果是云服务器可以使用厂商的防火墙策略阻断海外IP段的TCP+UDP,如果是linux系统和win系统也可以使用防火墙策略实现,或其他支持三层路由的交换机,防火墙路由器等都可以的。

<!-- gh-comment-id:2466606314 --> @88489754 commented on GitHub (Nov 10, 2024): 完全可以的啊,如果是云服务器可以使用厂商的防火墙策略阻断海外IP段的TCP+UDP,如果是linux系统和win系统也可以使用防火墙策略实现,或其他支持三层路由的交换机,防火墙路由器等都可以的。
Author
Owner

@fatedier commented on GitHub (Nov 11, 2024):

已经有相关 issue 了,未来会考虑支持 ACL 规则配置。

<!-- gh-comment-id:2467154009 --> @fatedier commented on GitHub (Nov 11, 2024): 已经有相关 issue 了,未来会考虑支持 ACL 规则配置。
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#3576
No description provided.