Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
BrJfUsTD
V2EX  ›  Linux

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

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

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

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