Log and Block Rate-Limited SSH Connections with iptables
Logging connections that hit rate-limit rules helps you identify brute force attempts and troubleshoot legitimate clients that are being blocked. The standard approach is to create a dedicated chain that logs packets before dropping them. Create a logging and drop chain First, create a custom chain to handle logging and dropping: iptables -N LOGNDROP iptables…