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

[client] Exclude loopback from NAT #2747

Merged
merged 2 commits into from
Oct 16, 2024
Merged

[client] Exclude loopback from NAT #2747

merged 2 commits into from
Oct 16, 2024

Conversation

lixmal
Copy link
Contributor

@lixmal lixmal commented Oct 16, 2024

Describe your changes

This fixes an issue with the ebpf proxy port being changed by the nat rules

-A NETBIRD-RT-NAT -i wt0 ! -o lo -j MASQUERADE
-A NETBIRD-RT-NAT ! -i lo -o wt0 -j MASQUERADE
       chain netbird-rt-postrouting {
                type nat hook postrouting priority srcnat - 1; policy accept;
                iifname "wt0" oifname != "lo" counter packets 0 bytes 0 masquerade
                oifname "wt0" iifname != "lo" counter packets 0 bytes 0 masquerade
        }

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

@lixmal lixmal changed the title Exclude loopback from NAT [client] Exclude loopback from NAT Oct 16, 2024
Copy link

@lixmal lixmal merged commit 8c8900b into main Oct 16, 2024
21 checks passed
@lixmal lixmal deleted the exclude-lo-from-nat branch October 16, 2024 15:36
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