V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
BrJfUsTD
V2EX  ›  Linux

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

  •  
  •   BrJfUsTD · 2021-12-07 08:53:09 +08:00 · 2775 次点击
    这是一个创建于 842 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    9 条回复    2021-12-09 15:39:08 +08:00
    Daylight1993
        1
    Daylight1993  
       2021-12-07 09:30:56 +08:00
    Fail2ban 试试
    dier
        2
    dier  
       2021-12-07 09:51:07 +08:00
    crontab+/etc/hosts.deny 试试?
    ihipop
        3
    ihipop  
       2021-12-07 10:10:07 +08:00 via Android
    ipset with ttl
    acbot
        4
    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
        5
    julyclyde  
       2021-12-07 13:03:42 +08:00
    @dier 正常应用程序都不支持 hosts.deny
    wang9571
        6
    wang9571  
       2021-12-07 14:24:21 +08:00
    可以的吧,我记得有--timeout 选项
    iqoo
        7
    iqoo  
       2021-12-07 14:27:45 +08:00
    ipset 自带超时功能
    maxbon
        8
    maxbon  
       2021-12-07 17:51:23 +08:00
    ipset 呀
    yanqiyu
        9
    yanqiyu  
       2021-12-09 15:39:08 +08:00
    ipset 的超时可以用,也可以跟踪下 https://github.com/firewalld/firewalld/issues/868
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3366 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:40 · PVG 21:40 · LAX 06:40 · JFK 09:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.