Fix for UFW on Jetpack

I’ve noticed that you cannot enable UFW on Jetpack (4.6) due to the error:

ERROR: problem running ufw-init
ip6tables-restore: line 142 failed

Problem running '/etc/ufw/before6.rules'

Well, the problem is that ubuntu enables more netfilter modules than vanilla kernel. So this can be fixed by enabling them in kernel and recompiling it. I haven’t tested it one by one but you’ll at least need CONFIG_IP6_NF_MATCH_RT=m (because ufw rules have -m rt in them).
ufw.patch (3.8 KB)

Nice! Thanks for your sharing to community!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.