I'm using as follows firewall rules for secure my router. I want to more security. So I wants to which IP login to my router more then 3 or 3 times this IP will block for 1 day. How can I do this?
0 chain=input action=accept protocol=icmp src-address-list=!Hacker log=no
log-prefix=""
1 chain=input action=add-src-to-address-list protocol=tcp address-list=Hacker
address-list-timeout=5m dst-port=22,23,8080,80,8291 log=no log-prefix=""
2 chain=input action=drop src-address-list=Hacker