When configuring firewall rules to be as strict as required, you may have some troubles understanding why something you thought was allowed is, actually, not. And to track down this kind of issues, some logs might help. Here is a small copy-pasta to enable firewalld
logging.
Enable “Access Denied”
firewalld
can log events to rsyslog
, the events journal in most linux distribution. This can be enable either at runtime (that won’t persist across service restarts) or by configuration to keep it enabled for longer periods.
|
|
Then, we’ll put rejection logs in {{logFileName}}
.
|
|
Yay ! Now, your can look at /var/log/{{logFileName}}.log
to see denied messages info !