Hello, I have Resin OS 1.24.0 and Supervisor 2.8.3 on my device (FROM resin/nuc-debian:latest), and I was surprised to find that I could not create a LOG target in my iptables rules. I want this to that I know that packets are about to be dropped. If my understanding is correct, the issue is that the Yocto modules installed on my device (at 4.1.8) are missing the required Netfilter modules, nf_log_common and nf_log_ipv4 in particular.
Hi.
Yes, by default we use the kernel config supplied by the BSP layer. And in this case it looks like these modules are not enabled by default.
So to answer your questions:
1 - yes, it looks like the BSP doe snot have them by default so we did not add them either until now
2 - resinOS 1.X will not receive updates anymore. All development is done towards 2.X
3 - there would be a way for you to build the kernel modules and load them in your container. One examplefor doing this is https://github.com/resin-io-playground/kernel-module-build . But if I recall correctly, the modules headers are not exported correctly for 1.X versions and should best be used with 2.X
We are taking into consideration adding these modules in resinOS 2. Will keep you updated
Thanks, I’d really appreciate that. That file listing I posted above suggests that any Yocto >= 4.1.10 will include this, unless you selectively remove them for the ResinOS.
Are you able to tell me whether ResinOS 2 has these modules present in /lib/modules/ as is? It would help me decide whether to give ResinOS 2 a try.
I’ve checked the resinOS 2.0.0-rc5 image now, and it has the 4.8.17-yocto-standard kernel & modules. Don’t seem to have either nf_log_common or nf_log_ipv4. Checking the upstream meta-intel BSP, it does not seem like that they enable those modules in the default kernel settings, just as @florin mentioned above.
The file listing you mentioned above was from a different hardware, if I date to guess, it was one of the BeagleBone series (judging by the presence of the TI firmware files). Their BSP might include those modules by default.
Support for custom kernel modules are important extra for 2.0, and definitely taking feedback for including more/different default modules, thank you for the feedback!