Menu

firewalld/

Block IP address in firewalld

sudo firewall-cmd --add-rich-rule="rule family='ipv4' source address='89.20.160.77' reject" --timeout=1h

Valid values for timeout - numbers followed by s, m or h

Documentation

· 23 May 2022

Log denied connections in firewalld

Edit file /etc/sysconfig/firewalld:

FIREWALLD_ARGS=--debug=10
· 1 Jan 2020