So, when i write these iptables rules:
- Code: Select all
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP
my iptables rejects all with message iptables: No chain/target/match by that name
- Code: Select all
root@l-box:~# iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables: No chain/target/match by that name
root@l-box:~# iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP
iptables: No chain/target/match by that name
How to fix this problem? Please help me.
Thanks!