Firewalld 屏蔽 IP 可以设置在一个时间范围内?

2021-12-07 08:53:09 +08:00
 BrJfUsTD

例如屏蔽 IP 仅在添加后的两天内生效,之后自动放行。

2803 次点击
所在节点    Linux
9 条回复
Daylight1993
2021-12-07 09:30:56 +08:00
Fail2ban 试试
dier
2021-12-07 09:51:07 +08:00
crontab+/etc/hosts.deny 试试?
ihipop
2021-12-07 10:10:07 +08:00
ipset with ttl
acbot
2021-12-07 10:14:56 +08:00
iptables *** -m time --datestart 2021-3-19T17:40:08 --datestop 2021-3-19T17:59:50 -j DROP 用脚本计算时间然后添加,清理过期规则或者是自己开发模块
julyclyde
2021-12-07 13:03:42 +08:00
@dier 正常应用程序都不支持 hosts.deny
wang9571
2021-12-07 14:24:21 +08:00
可以的吧,我记得有--timeout 选项
iqoo
2021-12-07 14:27:45 +08:00
ipset 自带超时功能
maxbon
2021-12-07 17:51:23 +08:00
ipset 呀
yanqiyu
2021-12-09 15:39:08 +08:00
ipset 的超时可以用,也可以跟踪下 https://github.com/firewalld/firewalld/issues/868

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/820506

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX