# Add support for nftables

**URL:** <https://community.solid-run.com/t/add-support-for-nftables/916>\
**Category:** NXP LX2160\
**Created:** [October 24, 2024, 11:23am UTC](https://community.solid-run.com/t/add-support-for-nftables/916 "2024-10-24T11:23:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morta](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Morta](https://community.solid-run.com/u/Morta)\
**Post date:** [October 24, 2024, 11:23am UTC](https://community.solid-run.com/t/add-support-for-nftables/916/1 "2024-10-24T11:23:52Z")

</div>

Hi

Could you add support for nftables nat and postrouting to your kernel builds.

Following situation is

```auto
root@LX2621a:~# zgrep CONFIG_NF_TABLES /proc/config.gz
CONFIG_NF_TABLES=y
# CONFIG_NF_TABLES_INET is not set
# CONFIG_NF_TABLES_NETDEV is not set
CONFIG_NF_TABLES_IPV4=y
# CONFIG_NF_TABLES_ARP is not set
# CONFIG_NF_TABLES_IPV6 is not set
CONFIG_NF_TABLES_BRIDGE=y

```

that what is needed

```auto
zgrep CONFIG_NF_TABLES /proc/config.gz

Ensure the following options are set:

* `CONFIG_NF_TABLES=y`
* `CONFIG_NF_TABLES_INET=y`
* `CONFIG_NF_TABLES_IPV4=y`
* `CONFIG_NF_NAT_IPV4=y`
* `CONFIG_NF_TABLES_IPV6=y`
* `CONFIG_NF_NAT_IPV6=y`

```

How I can build a kernel with this settings and docker?

---

<div class="post-metadata">

**Author:** ![Morta](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Morta](https://community.solid-run.com/u/Morta)\
**Post date:** [October 24, 2024, 11:30am UTC](https://community.solid-run.com/t/add-support-for-nftables/916/2 "2024-10-24T11:30:05Z")

</div>

It’s correct to add following lines

```auto
CONFIG_NF_TABLES_ARP=y
CONFIG_NF_TABLES_IPV6=y
CONFIG_NF_TABLES_INET=y
CONFIG_NF_TABLES_NETDEV=y

```

in

> <https://github.com/SolidRun/lx2160a_build/blob/master/configs/linux/lx2k_additions.config>

will enable full nftables support to the builded image/kernel?

---

<div class="post-metadata">

**Author:** ![Morta](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Morta](https://community.solid-run.com/u/Morta)\
**Post date:** [October 25, 2024, 1:56pm UTC](https://community.solid-run.com/t/add-support-for-nftables/916/3 "2024-10-25T13:56:39Z")

</div>

The compiled kernel image works with nftables on this configuration.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [November 3, 2024, 6:05am UTC](https://community.solid-run.com/t/add-support-for-nftables/916/4 "2024-11-03T06:05:58Z")

</div>

We will look into adding this to our next BSP release.
