Community discussions

MikroTik App
 
smunaut
newbie
Topic Author
Posts: 26
Joined: Fri Jul 08, 2016 10:24 pm

Null route ?

Mon Jul 25, 2016 7:02 pm

Hi,

What would be the equivalent of such a null route written in Cisco syntax :
ip route 1.1.1.1 255.255.255.0 Null0 100
 
Basically I need some traffic to be null routed but can't use iptables filters easily because it only has to be null routed if there is not a more specific route or a route with a lower metric ...

Cheers,

Sylvain
 
paulct
Member
Member
Posts: 336
Joined: Fri Jul 12, 2013 5:38 pm

Re: Null route ?

Mon Jul 25, 2016 7:17 pm

ip route add dst-address=192.168.0.0/24 type=blackhole
 
smunaut
newbie
Topic Author
Posts: 26
Joined: Fri Jul 08, 2016 10:24 pm

Re: Null route ?

Tue Jul 26, 2016 10:28 pm

Tx works like a charm !