How to filter the network traffic based on the systemd sshd service in Red Hat Enterprise Linux 7

Solution Unverified - Updated -

Issue

  • I wanted to filter the network traffic based on the systemd service.
  • It is possible in RHEL8 with cgroup v2 by using --path option of iptables.
  • How can I do the similar thing in RHEL7 with cgroup v1?

Environment

Red Hat Enterprise Linux 7 (RHEL7)

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