DNS Network Routes break masquerading #1112

Closed
opened 2025-11-20 05:24:16 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @ndziuba on GitHub (Jul 30, 2024).

When creating a DNS Network Route masquerading is set by default.
This results in the following rule for routing nodes when running: iptables -t nat -S
-A NETBIRD-RT-NAT -j MASQUERADE
-A NETBIRD-RT-NAT -j MASQUERADE

Because of that every traffic trough a routing node that has this route gets masqueraded as no -s or -d flags are set.
Even when masquerading is deactivated for another route.

Deactivating masq for the DNS route fixes this behaviour.
But that means they cant be used with masquerading on a node that has non-masqueraded routes.

NetBird version

0.28.6

Originally created by @ndziuba on GitHub (Jul 30, 2024). When creating a DNS Network Route masquerading is set by default. This results in the following rule for routing nodes when running: iptables -t nat -S -A NETBIRD-RT-NAT -j MASQUERADE -A NETBIRD-RT-NAT -j MASQUERADE Because of that every traffic trough a routing node that has this route gets masqueraded as no -s or -d flags are set. Even when masquerading is deactivated for another route. Deactivating masq for the DNS route fixes this behaviour. But that means they cant be used with masquerading on a node that has non-masqueraded routes. **NetBird version** 0.28.6
saavagebueno added the waiting-feedbacktriage-needed labels 2025-11-20 05:24:16 -05:00
Author
Owner

@soymgomez commented on GitHub (Aug 28, 2024):

Maybe related to #2489

@soymgomez commented on GitHub (Aug 28, 2024): Maybe related to #2489
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @ndziuba,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @ndziuba, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@mlsmaycon commented on GitHub (Jun 1, 2025):

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

@mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1112