In a fresh installation of CenotOS 6 in a VPS after running sysctl -p /etc/sysctl.conf
I got this errors:
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
What is the starting point to solving this errors?
Try:
You don't the those modules loaded into the kernel.
There are several bugreports about this on Red Hat Bugzilla, for example here, here and here.
Just remove the lines or run
sysctl -e -p
instead ofsysctl -p
.You get the errors because you do not have the
bridge
kernel module loaded. Three choices:/etc/sysctl.conf
sysctl
ignore the errors by giving it the-e
flag.You mention in your question that you are using a VPS. What kind of VPS? It sounds like you are in a OpenVZ VPS. If it is OpenVZ, it is sharing the kernel among many containers like yours and you cannot change the kernel configuration per container but directly on the host. I actually build a litlle OpenVZ centos container and I tried to apply the kernel config
net.bridge.bridge-nf-call-ip6tables = 0
followed bysysctl -p
and I got the same error as you do. If you really need it, that means you may have to think about changing the type of virtualization you are using or you may try to contact your VPS provider and ask him to enable this setting.Best.
This has been fixed in a redhat errata:RHBA-2015:1289 (Possibly paywall).
In summary - the fix is to move the configuration from
sysctl.conf
tomodprobe.d/dist.conf
:Delete the offending lines from
/etc/sysctl.conf
And add the behavior to your
/etc/modprobe.d/dist.conf
Which will set the values correctly upon load of the bridge module, or simply update your rpms to versions
Both are present by default in RHEL 6.8
If anyone is interested in the history behind this, it's present here with an explanation there.