Skip to content

policy: added set vrf and mark matching documentation #1628

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

Open
wants to merge 1 commit into
base: current
Choose a base branch
from

Conversation

991jo
Copy link

@991jo 991jo commented Apr 25, 2025

Change Summary

I added the documentation for the set vrf option in policies.
I also added the documentation for matching firewall marks.

Related Task(s)

Related PR(s)

vyos/vyos-1x#3740

Backport

Checklist:

Further notes

The way the marks are handled for VRFs/tables has some limitations. It limits the user to a single fwmark per VRF/table. the underlying linux kernel allows e.g. for matching with masks. This would allow it to seperate the 32 Bits (of which only 31 can be matched due to the restrictions in the CLI) into multiple chunks and e.g. use the lower 8 bits for mapping into a VRF while using the upper 24 bits to match to firewall-rules, shapers, etc. By limiting the mapping to a VRF/table to a single mark this is no longer possible.

Judging from the comment here vyos/vyos-1x#3581 (comment) it appears like there is a distinction between "VRF" and "non-VRF" table IDs, however I could not find anything in the documentation that explicitly states that.

@991jo 991jo requested a review from rebortg as a code owner April 25, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant