How to Block ICMP request for a particular interface in RHEL

Solution Verified - Updated -

Issue

  • How do I disable ping for a particular interface?

  • Trying to get ICMP requests blocked on eth1 but allow on other interfaces. Output of iptables shows its properly configured to block icmp on eth1 and allow others to ping but if I do not specify an interface icmp blocks on all interfaces just fine.

Environment

  • Red Hat Enterprise Linux (RHEL)

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.