请帮忙看看这条 iptables 规则为何报错,运行不起来。
- 0次
- 2021-07-13 01:26:42
- idczone
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多长时间后解封呢?
line 14是啥?
这条规则在14行
让你贴原文
貌似有两个 -m ?