Page 1 of 1

failed to load nf_conntrack module

Posted: 2019/10/22 15:50:50
by w()lf
I recently set up a server using CentOs7.
While setting up firewalld i came across the following error:
ERROR: Failed to load nf_conntrack module:
modprobe: ERROR: could not find module by name='nf_conntrack'
ERROR: could not insert 'nf_conntrack': Function not implemented
ERROR: Error running install command for nf_conntrack
modinfo nf_conntrack results in:
modinfo: ERROR: Module alias nf_conntrack not found.
Does anyone know how to fix this?
Thanks a lot!

Re: failed to load nf_conntrack module

Posted: 2019/10/23 14:30:27
by TrevorH
That module is part of the CentOS 7 kernel so there is something else going on. Is this a VPS? What is the output from the command uname -a ? What is returned by grep -ir nf_conntrack /etc/modprobe*

Re: failed to load nf_conntrack module

Posted: 2019/10/25 08:16:47
by w()lf
Hey thanks for the reply,
I think its a vps. Im using domainFactory/JiffyBox.

uname -a:
Linux j333112.servers.jiffybox.net 4.19.56-x86_64-jb1 #1 SMP Thu Jun 27 10:22:31 CEST 2019 x86_64 x86_64 x86_64 GNU/Linux
grep -ir nf_conntrack /etc/modprobe*:
/etc/modprobe.d/firewalld-sysctls.conf:install nf_conntrack /usr/sbin/modprobe --ignore-install nf_conntrack $CMDLINE_OPTS && /usr/sbin/sysctl --quiet --pattern 'net[.]netfilter[.]nf_conntrack.*' --system

Re: failed to load nf_conntrack module

Posted: 2019/10/25 15:12:18
by TrevorH
I'm afraid your provider has given you something which is not CentOS. We do not ship any kernel version 4.19.56-x86_64-jb1 and it's that that is the problem. Whoever built and supplied that kernel would appear not to have included the nf_conntrack* modules. You'll have to ask them about it and either hope they can supply one that works or guide you on hot to install the correct distro kernel and use that.