This is the script I use to ban ip's that to try and access my ssh port...
#!/usr/bin/bash
firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address=$1 reject"
firewall-cmd --add-rich-rule="rule family='ipv4' source address=$1 reject"


Page updated last: 07:54:04 [CST] on 2020-01-13