-
Notifications
You must be signed in to change notification settings - Fork 390
firewall: T7452: update rule generation for Zone-based firewall #4506
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
Conversation
👍 |
c3a69f9
to
6c93642
Compare
On a local VyOS instance ive replaced "/usr/share/vyos/templates/firewall/nftables-zone.j2" with the file in the commit, and corrected some errors. It seems to be working so-far without any issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC outbound packets to VRF used the physical interface name.
Ping @nicolas-fort as I think this was something you worked on previously. If you have any feedback here?
If need be, one can specify the interfaces to listen use in rules by using the "member interface" instead of "member vrf", i changed the behaviour as both are possible with this approach, and it follows the same approach as earlier commits where both vrf and interface was specified under "interface" :) |
CI does not like your changes:
|
ce3614f
to
4f03afb
Compare
❌ Conflicts Found. This pull request has conflicts. Please resolve them before we can evaluate the pull request. |
✅ Conflicts Resolved. Conflicts have been resolved. A maintainer will review the pull request shortly. |
CI integration 👍 passed! Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust Alex's judgement and the code looks good to me.
I have read the CLA Document and I hereby sign the CLA David Vølker seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Change summary
When utilizing the ZBF with VRF, issues occur with outgoing traffic - specifically with ping packets destined for interface on vyos itself.
Types of changes
Related Task(s)
https://vyos.dev/T7452
Related PR(s)
How to test / Smoketest result
I added the below entries in netfilter above the default drop, and it solved the issue
Checklist: