Similar to How do you add a blackhole route on your network?, but I'd like to know how to make such a route permanent in SLES 12.
In YaST I can only add "normal" routes.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
The route can be added through
yast2 lan' in "Routing" via "Add" to "Routing Table", specifying option
Effectively it means the a line is added to
/etc/sysconfig/network/routes or more specifically to
/etc/sysconfig/network/ifroute-eth0 for interface eth0.
The line added may look like (for
10.0.0.1/32 - - eth0 blackhole
10.0.0.1 is the IP address and
32 is the netmask, blocking the host via interface
eth0 in the example given. The minus (
-) stands for "value not specified".
The syntax is described in manual page
ifroute(5) and the order of fields is: