v6:
Code: Select all
/routing filter
add action=jump chain=Out_MyISP jump-target=No_Bogon
add action=accept bgp-as-path="^\$" chain=Out_MyISP prefix=123.231.0.0/20 prefix-length=20-24 set-bgp-prepend=3
add action=discard chain=Out_MyISP
[b]add action=jump chain=In_MyISP jump-target=No_Bogon set-bgp-communities=""
add action=discard append-bgp-communities="" chain=In_MyISP prefix=123.231.0.0/20 prefix-length=20-32 set-bgp-communities=""
add action=discard append-bgp-communities="" chain=In_MyISP prefix=0.0.0.0/0 set-bgp-communities=""
add action=accept append-bgp-communities="" chain=In_MyISP[/b]
add action=discard chain=No_Bogon prefix=127.0.0.0/8 prefix-length=8-32
add action=discard chain=No_Bogon prefix=255.255.255.255
Code: Select all
/routing filter rule
add chain=Out_MyISP rule="jump No_Bogon;"
add chain=Out_MyISP rule="if (dst in 123.231.0.0/20 && dst-len in 20-24 && bgp-as-path-slow-legacy \"^\$\") { set bgp-path-prepend 3; accept; }"
add chain=Out_MyISP rule="reject;"
add chain=In_MyISP rule="jump No_Bogon;"
add chain=In_MyISP rule="if (dst in 123.231.0.0/20 && dst-len in 20-32) {reject;}"
add chain=In_MyISP rule="if (dst in 0.0.0.0/0) {reject;}"
add chain=In_MyISP disabled=no rule="accept;"
add chain=No_Bogon rule="if (dst in 127.0.0.0/8 && dst-len in 8-32) { reject; }"
add chain=No_Bogon rule="if (dst == 255.255.255.255) {reject;}"
Interestingly, when I downgrade to v6, "In_MyISP" rules reappeared. Does that mean mikrotik keeps the settings for both versions in different places?
Anticipating suggestions, I have read https://help.mikrotik.com/docs/display/ ... nd+Filters
However, I already had 2 attempts to upgrade my BGP to v7 and both turned out to be a failure, this time I would like to be sure the filters are OK