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

请帮忙看看这条 iptables 规则为何报错,运行不起来。

  •  
  •   aruisi · 2015-04-02 17:29:05 +08:00 · 2329 次点击
    这是一个创建于 3318 天前的主题,其中的信息可能已经有所发展或是发生改变。
    iptables -I INPUT -p udp --dport 53 -m state --state NEW -m recent --update --seconds 60 --hitcount 1000 -j DROP

    规则为1分钟内对DNS的查询频率超过1000次则拦截此ip。
    保存后报错iptables: Applying firewall rules: iptables-restore: line 14 failed

    还有个问题就是如何设置拦截这个ip多长时间后解封呢?
    4 条回复    2015-04-03 09:48:15 +08:00
    julyclyde
        1
    julyclyde  
       2015-04-02 17:51:47 +08:00
    line 14是啥?
    aruisi
        2
    aruisi  
    OP
       2015-04-02 17:54:59 +08:00
    @julyclyde 这条规则在14行
    julyclyde
        3
    julyclyde  
       2015-04-02 18:39:55 +08:00
    @aruisi 让你贴原文
    blank4me
        4
    blank4me  
       2015-04-03 09:48:15 +08:00
    貌似有两个 -m ?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2040 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 16:07 · PVG 00:07 · LAX 09:07 · JFK 12:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.