I have just connected to an internet exchange point, and am building my routing filters. In order to make it manageable I want to use includes instead of jumps, so I am trying out the match-chain feature of routing filters, but I cannot make it work, why?
Here is what the filter looks like:
First I make a chain that discards the ASNs that I want to throw away:
Code: Select all
16 ;;; Discard HE.net
chain=DISCARD-UNWANTED-ASes bgp-as-path=6939 invert-match=no action=discard set-bgp-prepend-path=""
17 ;;; Discard FON
chain=DISCARD-UNWANTED-ASes bgp-as-path=37305 invert-match=no action=discard set-bgp-prepend-path=""
Code: Select all
2 ;;; Discard Unwanted ASes
chain=ASTEROID-IN-v4 match-chain=DISCARD-UNWANTED-ASes protocol=bgp invert-match=no action=discard set-bgp-prepend-path=""
3 ;;; Accept whatever is remaining
chain=ASTEROID-IN-v4 protocol=bgp invert-match=no action=accept set-bgp-prepend-path=""
If I modify the filter like this, it works and the prefixes are discarded, so I am sure of my syntax in the bgp-as-path field.
Code: Select all
1 ;;; Discard HE.net
chain=ASTEROID-IN-v4 protocol=bgp bgp-as-path=6939 invert-match=no action=discard
set-bgp-prepend-path=""
2 ;;; Discard FON
chain=ASTEROID-IN-v4 protocol=bgp bgp-as-path=37305 invert-match=no action=discard
set-bgp-prepend-path=""
3 ;;; Accept whatever is remaining
chain=ASTEROID-IN-v4 protocol=bgp invert-match=no action=accept set-bgp-prepend-path=""
Any help very much appreciated,
Alex