V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
BrJfUsTD
V2EX  ›  Linux

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

  •  
  •   BrJfUsTD · Dec 7, 2021 · 3406 views
    This topic created in 1613 days ago, the information mentioned may be changed or developed.

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

    9 replies    2021-12-09 15:39:08 +08:00
    Daylight1993
        1
    Daylight1993  
       Dec 7, 2021
    Fail2ban 试试
    dier
        2
    dier  
       Dec 7, 2021
    crontab+/etc/hosts.deny 试试?
    ihipop
        3
    ihipop  
       Dec 7, 2021 via Android
    ipset with ttl
    acbot
        4
    acbot  
       Dec 7, 2021
    iptables *** -m time --datestart 2021-3-19T17:40:08 --datestop 2021-3-19T17:59:50 -j DROP 用脚本计算时间然后添加,清理过期规则或者是自己开发模块
    julyclyde
        5
    julyclyde  
       Dec 7, 2021
    @dier 正常应用程序都不支持 hosts.deny
    wang9571
        6
    wang9571  
       Dec 7, 2021
    可以的吧,我记得有--timeout 选项
    iqoo
        7
    iqoo  
       Dec 7, 2021
    ipset 自带超时功能
    maxbon
        8
    maxbon  
       Dec 7, 2021
    ipset 呀
    yanqiyu
        9
    yanqiyu  
       Dec 9, 2021
    ipset 的超时可以用,也可以跟踪下 https://github.com/firewalld/firewalld/issues/868
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   941 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 19:57 · PVG 03:57 · LAX 12:57 · JFK 15:57
    ♥ Do have faith in what you're doing.