How to add a "blackhole" or "unreachable" or "prohibit" route to NetworkManager?
Issue
- How to add a "blackhole" or "unreachable" or "prohibit" route to NetworkManager?
- In
initscripts
we used route typeunreachable
, how to add this to a NetworkManager connection so it persists? - Unable to configure blackhole routing in RHEL 8
- Our RHEL boxes are configured as routers and require
blackhole
routing type to ensure full functionality. NetworkManager does not support this routing type, even though the kernel andiproute2
do.
Environment
- Red Hat Enterprise Linux 7 or later
- NetworkManager
- Black hole, unrechable, or prohibited IP routing
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.