You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When declaring pbr-map with a single mark as a match, let's say:
pbr-map MY_PBR seq 5
match mark 200
set nexthop 1.2.3.4
int enp5s0f0
pbr-policy MY_PBR
A new routing table is correctly installed into the kernel consisting of a single default via 1.2.3.4 dev enp5s0f0
However no ip rule are installed, making the PBR useless.
On the contrary, adding a src-ip as a supplementary match works as expected:
pbr-map MY_PBR seq 5
match src-ip 1.2.3.4/5
match mark 200
set nexthop 1.2.3.4
int enp5s0f0
pbr-policy MY_PBR
Result in a correct rule: prio XXX from 1.2.3.4/5 fwmark 0xc8 iif enp5s0f0 lookup YYYYY being created
Hmm, I just retry this from a fresh install from DEB pkg (version frr 8.5.6) onto a new machine and it works fine.
I then retry from a fresh install from deb.frrouting.org/frr pkg with version 10.1.1 on a new machine and it failed to create the rule, as observed previously
Here is the frr.conf
pbr-map MY_PBR seq 5
match mark 129175
set nexthop 10.1.0.254
int eth0
pbr-policy MY_PBR
And the pbr map dump:
frr# show pbr map
pbr-map MY_PBR valid: yes
Seq: 5 rule: 304
Installed: no Reason: Valid
MARK Match: 129175
nexthop 10.1.0.254
Installed: yes Tableid: 10000
And the ip rule dump:
root@frr:/etc/frr# ip rule
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
The same setup on frr v8 leads to
root@frr:/etc/frr# ip rule
0: from all lookup local
304: from all fwmark 0x1f897 iif eth0 lookup 10000 proto zebra
32766: from all lookup main
32767: from all lookup default
I'm also seeing (for frr v10.1.1) ip rule leftover not removed from previous configurations, sometimes, that's weird.
Description
When declaring
pbr-map
with a single mark as a match, let's say:A new routing table is correctly installed into the kernel consisting of a single
default via 1.2.3.4 dev enp5s0f0
However no ip rule are installed, making the PBR useless.
On the contrary, adding a
src-ip
as a supplementary match works as expected:Result in a correct rule:
prio XXX from 1.2.3.4/5 fwmark 0xc8 iif enp5s0f0 lookup YYYYY
being createdVersion
How to reproduce
Simply write a pbr-map using a single match based on mark.
Expected behavior
Would expect the rule:
prio XXX from all fwmark 0xc8 iif enp5s0f0 lookup YYYYY
being createdActual behavior
No rule are created
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: