fix: update kernel module check for Keenetic platform to use nft functionality

This commit is contained in:
Daniel Lavrushin 2026-04-23 14:11:26 +02:00
parent ca4aca6823
commit 4dc521502e
No known key found for this signature in database
GPG key ID: 67D627A2ADB43DD0

View file

@ -1100,7 +1100,7 @@ _keenetic_load_kmods() {
log_info "You may need to enable 'Kernel modules for Netfilter' in the package manager"
fi
if ! _kmod_available "xt_connbytes" && ! _kmod_available "nf_tables"; then
if ! _kmod_available "xt_connbytes" && ! _nft_functional; then
log_warn "xt_connbytes kernel module not available — b4 will fail to start on iptables"
log_info "Enable it via router web UI: System settings > Component options"
log_info " look for 'Netfilter kernel modules' / 'xtables-addons' / 'Connection tracking extensions'"