[Bug 1777] New: Error: COMMAND_FAILED: 'python-nftables' failed

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Tue Oct 29 13:21:16 CET 2024


https://bugzilla.netfilter.org/show_bug.cgi?id=1777

            Bug ID: 1777
           Summary: Error: COMMAND_FAILED: 'python-nftables' failed
           Product: nftables
           Version: 1.0.x
          Hardware: arm
                OS: Debian GNU/Linux
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: kernel
          Assignee: pablo at netfilter.org
          Reporter: fs3000 at proton.me

(apologies if picking the wrong component)

This happens on a Debian 12 system with custom kernel. On a arm64 router.

On a fresh install, simply doing "firewall-cmd --add-interface=eth1
--zone=internal" causes a nftables error. The strange part, is that this only
happens on firewalld's zones "internal" and "home". Actually i have tried other
zones, but then, NAT does not work properly, even tough i have set the right
rules and policies in firewalld.

#########################################

root at banana1 /root $ firewall-cmd --add-interface=eth1 --zone=internal
Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: No such
file or directory; did you mean chain ‘filter_IN_external’ in table inet
‘firewalld’?

internal:0:0-0: Error: No such file or directory; did you mean chain
‘filter_FWD_external_allow’ in table inet ‘firewalld’?


JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"rule":
{"family": "inet", "table": "firewalld", "chain": "filter_IN_internal",
"index": 6, "expr": [{"match": {"left": {"meta": {"key": "l4proto"}}, "op":
"==", "right": {"set": ["icmp", "icmpv6"]}}}, {"accept": null}]}}}, {"insert":
{"rule": {"family": "inet", "table": "firewalld", "chain":
"filter_INPUT_ZONES", "expr": [{"match": {"left": {"meta": {"key": "iifname"}},
"op": "==", "right": "eth1"}}, {"goto": {"target": "filter_IN_internal"}}]}}},
{"insert": {"rule": {"family": "inet", "table": "firewalld", "chain":
"nat_POSTROUTING_ZONES", "expr": [{"match": {"left": {"meta": {"key":
"oifname"}}, "op": "==", "right": "eth1"}}, {"goto": {"target":
"nat_POST_internal"}}]}}}, {"insert": {"rule": {"family": "inet", "table":
"firewalld", "chain": "filter_FORWARD_ZONES", "expr": [{"match": {"left":
{"meta": {"key": "iifname"}}, "op": "==", "right": "eth1"}}, {"goto":
{"target": "filter_FWD_internal"}}]}}}, {"insert": {"rule": {"family": "inet",
"table": "firewalld", "chain": "nat_PREROUTING_ZONES", "expr": [{"match":
{"left": {"meta": {"key": "iifname"}}, "op": "==", "right": "eth1"}}, {"goto":
{"target": "nat_PRE_internal"}}]}}}, {"insert": {"rule": {"family": "inet",
"table": "firewalld", "chain": "mangle_PREROUTING_ZONES", "expr": [{"match":
{"left": {"meta": {"key": "iifname"}}, "op": "==", "right": "eth1"}}, {"goto":
{"target": "mangle_PRE_internal"}}]}}}, {"add": {"rule": {"family": "inet",
"table": "firewalld", "chain": "filter_FWD_internal_allow", "expr": [{"match":
{"left": {"meta": {"key": "oifname"}}, "op": "==", "right": "eth1"}},
{"accept": null}]}}}]}

#############################################

firewalld                     1.3.3-1~deb12u1
libnftables1:arm64            1.0.6-2+deb12u2
libnftnl11:arm64              1.2.4-2
python3-firewall              1.3.3-1~deb12u1
python3-nftables              1.0.6-2+deb12u2

Custom 6.12.0-rc1 kernel.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20241029/190b5e04/attachment.html>


More information about the netfilter-buglog mailing list