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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content