Mikrotik Routing

From My notepad
Jump to: navigation, search

OSPF

The route filter below will allow only private IP addresses to be passed in and out of your OSPF instances.

/routing filter
add action=accept chain=ospf-private-only comment="" disabled=no invert-match=no prefix=10.0.0.0/8 prefix-length=8-32
add action=accept chain=ospf-private-only comment="" disabled=no invert-match=no prefix=172.16.0.0/12 prefix-length=12-32
add action=accept chain=ospf-private-only comment="" disabled=no invert-match=no prefix=192.168.0.0/16 prefix-length=16-32
add action=discard chain=ospf-private-only comment="" disabled=no invert-match=no
Personal tools