On 2018/02/12 15:23, Martin Pieuchot wrote:
> On 12/02/18(Mon) 12:02, Sebastian Benoit wrote:
> > routefilter currently filters the default route,
> > if it's priority is higher than the filter prio.
> 
> Then why not change the priority of the default route?

On a standard machine this is already the case, the default route
is a static route (prio 8).

On some routers you might normally have a default coming from BGP or
OSPF, but want a last-resort default in case that protocol is not up.
An example -reject default from one of my routers:

$ netstat -rnfinet | grep ^default
default            195.95.187.16      UG         0  2904540     -    48 ix1  
default            127.0.0.1          UGRS       1    14637 32768    56 lo0  

I don't remember all the details but I've had problems in the past
when I had no default route, which is why I added the -reject.
(And in other cases you might want a low prio route that still sends
it to another machine).

Reply via email to