<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16300</bug_id>
          
          <creation_ts>2026-05-31 07:08:42 +0000</creation_ts>
          <short_desc>iptables in core-image-full-cmdline doesn&apos;t work</short_desc>
          <delta_ts>2026-07-16 15:54:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>6.0.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henrik Lindström">henrik</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105678</commentid>
    <comment_count>0</comment_count>
    <who name="Henrik Lindström">henrik</who>
    <bug_when>2026-05-31 07:08:42 +0000</bug_when>
    <thetext>I built core-image-full-cmdline with poky 6.0.1 as distro and qemux86-64 as machine. After booting and logging in as root, running the simple command &quot;iptables -A INPUT -i lo -j ACCEPT&quot; fails with error &quot;modprobe: FATAL: Module ip_tables not found in directory /lib/modules/6.18.24-yocto-standard&quot;.

One solution/workaround i found is to enable CONFIG_NETFILTER_XTABLES_LEGACY.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105708</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-06-04 14:37:20 +0000</bug_when>
    <thetext>Randy to find a person to work on this.
Paul is available for consult as needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105727</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-06-04 15:56:57 +0000</bug_when>
    <thetext>@Henrik, does it work with the default kernel config if you add `PACKAGECONFIG += &quot;libnftnl&quot;` for iptables? That will require the meta-networking layer.

If that works, we may want to bring libnftnl into OE-core and enable that by default going forward.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105728</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-06-04 15:59:05 +0000</bug_when>
    <thetext>Moving this to needinfo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105762</commentid>
    <comment_count>4</comment_count>
    <who name="Henrik Lindström">henrik</who>
    <bug_when>2026-06-06 08:54:38 +0000</bug_when>
    <thetext>Adding meta-networking and libnftnl to iptables PACKAGECONFIG does indeed work.

I did notice a quirk though, that it only works as long as the &quot;ptest&quot; distro feature is enabled. If i add `DISTRO_FEATURES_OPTED_OUT += &quot;ptest&quot;` to local.conf both iptables and nft stop working. Further adding `KERNEL_EXTRA_FEATURES:append = &quot; features/nf_tables/nf_tables.scc&quot;` to local.conf made it work again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105840</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-06-11 15:11:16 +0000</bug_when>
    <thetext>This may be design intent in how the nftables cfg work was done. 
I&apos;ll have someone investigate.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>