Firewalld does not take into account direct rules on loopback interface

Solution Verified - Updated -

Issue

I need to insert blocking rule before for traffic over loopback (lo) interface, I tried to use "--direct " option to use direct rules, but there is default ACCEPT rule on loopback interface, which is defined by firewalld, and which is hit before any direct rules are checked.
How can I achieve blocking access over loopback?

Environment

Red Hat Enterprise Linux 7, RHEL7
firewalld

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