[linux-yocto] [PATCH] netfilter: iptables: enable NAT tables

Bruce Ashfield bruce.ashfield at windriver.com
Wed Dec 28 19:31:22 PST 2016


On 16-12-27 8:03 AM, Mikko Ylinen wrote:
> This changes adds 'nat' table in iptables. The netfilter side
> is already configured for NAT but iptables config was missing.
>
> Further, CONFIG_IP_NF_TARGET* configured below depend on
> CONFIG_IP_NF_NAT but remain disabled unless CONFIG_IP_NF_NAT
> is explicitly enabled.
>
> CONFIG_IP_NF_TARGET_MASQUERADE is needed by Connman to
> support tethering.
>

Looks fine to me. Did you have a target/tested kernel version
for the change ? I'll put it on that version, and anything
newer.

Bruce

> Signed-off-by: Mikko Ylinen <mikko.ylinen at linux.intel.com>
> ---
>   features/netfilter/netfilter.cfg | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/features/netfilter/netfilter.cfg b/features/netfilter/netfilter.cfg
> index 99fa30fa..cefe5efe 100644
> --- a/features/netfilter/netfilter.cfg
> +++ b/features/netfilter/netfilter.cfg
> @@ -79,6 +79,7 @@ CONFIG_IP_NF_TARGET_REJECT=m
>   CONFIG_NF_NAT=m
>   CONFIG_NF_NAT_NEEDED=y
>   CONFIG_NF_NAT_IPV4=m
> +CONFIG_IP_NF_NAT=m
>   CONFIG_IP_NF_TARGET_MASQUERADE=m
>   CONFIG_IP_NF_TARGET_NETMAP=m
>   CONFIG_IP_NF_TARGET_REDIRECT=m
>



More information about the linux-yocto mailing list