Manual:Routing/Routing filters
Jump to navigation
Jump to search
Sub-menu: /routing filter
Property | Description |
---|---|
action (accept | discard | jump | log | passthrough | reject | return; Default: passthrough) | action to perform on route matching the rule.
|
append-bgp-communities (integer:integer | internet | local-as | no-advertise | no-export; Default: ) | similar to 'set-bgp-communities', but does not delete any existing information about communities |
bgp-as-path (string; Default: ) | unanchored pattern to be searched inside AS_PATH attribute of the route. Optional ^ sign preceding parameter value restricts match to the beginning of AS_PATH attribute, while $ sign, which follows as-path value, restricts the match to the end of AS_PATH. Please note that any other regular expression syntax is not supported |
bgp-as-path-length (integer-integer; Default: ) | match length of AS_PATH BGP attribute, representing the number of ASes that have been traversed. Read how the AS_PATH length is calculated before using this matcher |
bgp-atomic-aggregate (absent | present; Default: ) | match ATOMIC_AGGREGATE BGP attribute |
bgp-communities (integer:integer | internet | local-as | no-advertise | no-export; Default: ) | match the COMMUNITIES BGP attribute. Match is done when communities attribute in a route contains all entries from this configured list. But note that if communities list contains 'internet', the whole list always matched. |
bgp-local-pref (integer[-integer]; Default: ) | match LOCAL_PREF BGP attribute. If the LOCAL_PREF for a route is not set, value 0 is used instead |
bgp-med (integer[-integer]; Default: ) | match MULTI_EXIT_DISC BGP attribute. If the MULTI_EXIT_DISC for a route is not set, value 0 is used instead |
bgp-origin (igp | egp | incomplete; Default: ) | match ORIGIN BGP attribute. If the ORIGIN for a route is not set, value 'incomplete' is used instead |
bgp-weight (signed integer[-signed integer]; Default: ) | match BGP weight property. If this property for a route is not set, value 0 is used instead |
chain (string; Default: "") | chain name to place this rule in. If a chain with the specified name does not exist it will be automatically created
chain name to place this rule in. If a chain with the specified name does not exist it will be automatically created
|
distance (integer: 0..255[ - integer:0..255]; Default: ) | match routes with specific administrative distance |
invert-math (yes | no; Default: no) | invert this match, i.e. apply the rule to routes that would fail to match it and vice versa |
jump-target (string; Default: ) | name of the target chain to jump to, if the 'action=jump' is used |
match-chain (string; Default: ) | the name of the chain which is used to evaluate the route. If the chain accepts the route, 'match-chain' property produces a true match |
pref-src (IP address range; Default: ) | match routes with a specific preferred source value |
prefix (IP prefix; Default: 0.0.0.0/0) | network prefix to match. If prefix-length is not set, only exact match is done. For example, 0.0.0.0/0 then matches only the default route and nothing else |
prefix-length (integer; Default: 0-32) | network prefix mask length to match. If prefix-length is set, for a route to match the prefix and prefix-length of a rule, the following should hold:
|
protocol (connect | static | rip | ospf | bgp; Default: ) | match routes coming from a specific protocol (the values are self-explanatory) |
route-comment (string; Default: ) | match routes with a specific comment |
route-tag (integer; Default: ) | match routes with a specific route-tag property value |
routing-mark (string; Default: ) | match routes with a specific routing mark |
scope (integer 0..255[-integer 0..255]; Default: ) | match routes with a specific scope property value |
set-bgp-communities (integer:integer | internet | local-as | no-advertise | no-export; Default: ) | set COMMUNITIES BGP attribut |
set-bgp-local-pref (integer; Default: ) | set LOCAL_PREF BGP attribute |
set-bgp-med (integer; Default: ) | set MULTI_EXIT_DISC BGP attribute |
set-bgp-prepend (integer: 0..16 | default; Default: ) | how many times to prepend router's own AS number to AS_PATH attribute For incoming filters, it affects the AS_PATH attribute length, which is used in BGP route selection process. For outgoing filters, the prepending is done when announcing route via BGP and affects only routes sent to EBGP peers (for IBGP value 1 is always used) |
set-bgp-weight (signed integer; Default: ) | set BGP weight property to be used in BGP route selection process. Valid only in incoming filters and for BGP routes |
set-metric (integer; Default: ) | Set metric |