How to permanently add "route add -host 10.20.30.10 reject" to a system
Issue
- How can the equivalent of
route add -host 10.20.30.10 reject
be permanently added to a system?
Desired effect:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.20.30.10 - 255.255.255.255 !H - - - -
Environment
- Red Hat Enterprise Linux 6 without NetworkManager
- Red Hat Enterprise Linux 7 without NetworkManager
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.