Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想禁止某个ip访问某个端口 #8

Open
Peterzhangnoise opened this issue Mar 10, 2023 · 5 comments
Open

想禁止某个ip访问某个端口 #8

Peterzhangnoise opened this issue Mar 10, 2023 · 5 comments

Comments

@Peterzhangnoise
Copy link

我在项目中创建了一个端口,然后在规则里面添加了一条屏蔽,立刻生效,但不起作用
查看firewall规则里面也是没有
firewall-cmd --list-rich-rule

我用命令行的方式是可以的
举个例子
firewall-cmd --add-rich-rule="rule family="ipv4" source address="172.16.100.2" port protocol="tcp" port="3306" drop"

@soonxf
Copy link
Owner

soonxf commented Mar 10, 2023

项目里面的规则和 Firewalld 的 富规则 不是一个概念

详细内容查看文档解释

@Peterzhangnoise
Copy link
Author

Peterzhangnoise commented Mar 11, 2023 via email

@Peterzhangnoise
Copy link
Author

我看了下你的源码,在屏蔽名单那有这个,只不过是没有端口

@soonxf
Copy link
Owner

soonxf commented Mar 11, 2023

近期在找工作

@pyengwoei
Copy link

近期在找工作

整个 商业版撒,我感觉这个不错,现在一般的cc防火墙 都要3000多一个月,功能其实比你这个多不了多少

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants