How to Log dropped packets using firewalld in RHEL7?

Solution Verified - Updated -

Issue

  • On all our RHEL 5 and 6 installation, we log all packets that are dropped by iptables using the following iptables rules:
### DROP ###
-A INPUT -j LOG --log-level debug --log-prefix "iptables: # DROP # "
-A INPUT -j DROP
  • How can the same results be achieved on RHEL 7, using firewalld ?

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • Firewalld service

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.