Skip to content
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

Fix/acl for forward #1305

Merged
merged 96 commits into from
Dec 8, 2023
Merged

Fix/acl for forward #1305

merged 96 commits into from
Dec 8, 2023

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Nov 13, 2023

Describe your changes

Enforce the ACL rules for routed traffic.

Because under the hood the firewall rules depend from the route rules the two logic has been merged into the firewall package.

  • fix cleanup routine in iptables and nftables
  • refactor the nftables/iptables logic. (start to use prerouting and mangle table)
  • remove IPv6 related codes because it is unused
  • remove unused codes, variables, structures

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@pappz pappz force-pushed the fix/acl-for-forward branch from efc27ac to 956d1b8 Compare December 4, 2023 16:11
@pappz pappz marked this pull request as ready for review December 6, 2023 10:39
client/firewall/iptables/acl_linux.go Outdated Show resolved Hide resolved
client/firewall/iptables/acl_linux.go Outdated Show resolved Hide resolved
client/firewall/iptables/acl_linux.go Outdated Show resolved Hide resolved
- typo fix
- use firewall mark as constant in iptables
@pappz pappz merged commit 006ba32 into main Dec 8, 2023
14 checks passed
@pappz pappz deleted the fix/acl-for-forward branch December 8, 2023 09:48
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
Fix ACL on routed traffic and code refactor
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
Fix ACL on routed traffic and code refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants