-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pbrd] How-to make ip rule without interface? #3242
Comments
PBR is designed to work with an incoming interface, if you do not want that we will need to modify PBR to do this. |
I was thinking that pbrd is Policy Based Routing daemon and I'll can replace my iproute scripts with this |
as a workaround you can add the pbr-policy to every interface, you'll end up with more rules but it will allow you to use it in the meantime. |
Maybe there should be possibility to attach pbr-map globally, without referencing any interface (in addition to interfaced based pbr-maps). Internally global pbr rules should have higher sequence numbers than interface based (let's say above 20k) to guarantee that interface based rules are evaluated earlier and always override global rules. This way current behavior would be preserved and global map will provide means for direct translation of existing ip rule based configurations into pbrd. |
@n3wtype -> It would be a very simple matter of adding a |
The workaround for this, is use new frr lua scripting feature. The example of script can be found here #16727 (comment) |
Description
How-to make ip rule with pbrd like this:
ip rule add from 5.128.220.100 lookup ntk
ip route add 0.0.0.0/0 via 5.128.220.1 table ntk
Steps to Reproduce
Expected behavior:
Possible to add pbr without interface definition.
Actual behavior:
pbr-policy
only avaiable for interface. I don't neediif
in this rule.Components
pbrd
Versions
The text was updated successfully, but these errors were encountered: