Why use iptables in the file client/firewall/nftags/router.linux.go #2269

Open
opened 2025-11-20 07:06:50 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @1018ji on GitHub (Sep 11, 2025).

Describe the problem

Why use iptables in the file client/firewall/nftags/router.linux.go

To Reproduce

The acceptForwardRules function first calls iptables, and then uses nftables if there are exceptions. Why not use nftables directly?

I use iStoreOS based on OpenWrt 24.10, which has both iptables and nftables in the system. Among them, iptables is implemented based on nftables compatibility. When using Netbird, iptables will be prioritized for creating forward rules. When I access the firewall interface, a reminder will appear asking me not to use iptables anymore.

Expected behavior

use nftables directly

Are you using NetBird Cloud?

NetBird Cloud

NetBird version

0.56.1

Is any other VPN software installed?

no

Debug output

nothing

Screenshots

Image Image

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @1018ji on GitHub (Sep 11, 2025). **Describe the problem** Why use iptables in the file client/firewall/nftags/router.linux.go **To Reproduce** The acceptForwardRules function first calls iptables, and then uses nftables if there are exceptions. Why not use nftables directly? I use iStoreOS based on OpenWrt 24.10, which has both iptables and nftables in the system. Among them, iptables is implemented based on nftables compatibility. When using Netbird, iptables will be prioritized for creating forward rules. When I access the firewall interface, a reminder will appear asking me not to use iptables anymore. **Expected behavior** use nftables directly **Are you using NetBird Cloud?** NetBird Cloud **NetBird version** `0.56.1` **Is any other VPN software installed?** no **Debug output** nothing **Screenshots** <img width="4542" height="2344" alt="Image" src="https://github.com/user-attachments/assets/e740da63-29ed-4dec-b846-98be2e7525cf" /> <img width="2666" height="1380" alt="Image" src="https://github.com/user-attachments/assets/c05423ff-d69e-4efe-a77f-45ae68090660" /> **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [ ] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [ ] Checked for newer NetBird versions - [ ] Searched for similar issues on GitHub (including closed ones) - [ ] Restarted the NetBird client - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the triage-needed label 2025-11-20 07:06:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2269