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

nixos-firewall-tool: broken with nf_tables #353129

Closed
6543 opened this issue Nov 2, 2024 · 5 comments
Closed

nixos-firewall-tool: broken with nf_tables #353129

6543 opened this issue Nov 2, 2024 · 5 comments
Labels
0.kind: bug Something is broken

Comments

@6543
Copy link
Member

6543 commented Nov 2, 2024

Describe the bug

use nftables over iptables on your system and try to use the nixos-firewall-tool to open a port temporary ...

Steps To Reproduce

Steps to reproduce the behavior:

  1. set networking.nftables.enable = true; on your nixos
  2. open a shell with nixos-firewall-tool (nix shell nixpkgs#nixos-firewall-tool)
  3. try to use it e.g. sudo nixos-firewall-tool show, sudo nixos-firewall-tool open tcp 3000, ...

Expected behavior

working ports etc...

Screenshots

image

Additional context

Add any other context about the problem here.

Notify maintainers

@clerie

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.10.1-zen1, NixOS, 24.05 (Uakari), 24.05.20241031.a500034
  • multi-user?: yes
  • sandbox: yes
  • version: `nix-env (Lix, like Nix) 2.91.1
  • nixpkgs: /nix/store/c73xqpp5pfzfiqfz5d89bn945fqdhgx1-source

Add a 👍 reaction to issues you find important.

@6543 6543 added the 0.kind: bug Something is broken label Nov 2, 2024
@6543
Copy link
Member Author

6543 commented Nov 2, 2024

nft add rule inet nixos-fw input-allow tcp dport 3234 accept comment "added_by_nixos-firewall-tool"
nft -a list chain inet nixos-fw input-allow | grep added_by_nixos-firewall-tool
nft delete rule inet nixos-fw input-allow handle 23

@6543
Copy link
Member Author

6543 commented Nov 2, 2024

looks like cabbab1 (#324615) solved it already ... can we backport it?

@nbdd0121
Copy link
Contributor

nbdd0121 commented Nov 2, 2024

This is known, which is why nixos-firewall-tool is not added to system packages if you use nftables.

Given that 24.11 is close, I think we probably shouldn't backport it.

@6543
Copy link
Member Author

6543 commented Nov 2, 2024

should we have this issue open and backport it after 24.11 is out?
or close it and mark it as solved?

@nbdd0121
Copy link
Contributor

nbdd0121 commented Nov 2, 2024

What do you mean by backport after 24.11 is out? #324615 will be in 24.11.

If we don't backport to 24.05 then there's nothing to act.

@6543 6543 closed this as completed Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants