[问题] 拿掉fail2ban加在iptables的IP?

楼主: chang0206 (Eric Chang)   2016-03-25 21:30:55
今天在测试fail2ban的一些指令
在移除被误判的IP时碰到了问题
底下是我想从iptables规则中移除的条件
Chain f2b-default (2 references)
target prot opt source destination
REJECT all
作者: sky791127 (喔耶GOGO)   2016-03-25 22:07:00
iptables -L f2b-default --line-numberiptables -D f2b-default num然后chain的target是REJECT 但是你下的是DROP
楼主: chang0206 (Eric Chang)   2016-03-26 00:36:00
REJECT的意思不是我要砍掉这条? 那个reject-icmp只是注解而已吧?
作者: Debian (Debian)   2016-03-26 01:50:00
iptables -D f2b-default 1
楼主: chang0206 (Eric Chang)   2016-03-26 21:12:00
改用行号就可以了, thanks~~

Links booklink

Contact Us: admin [ a t ] ucptt.com