Commit 463d4f70 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Do not fail on the conntrack sysctls; they have different

names in different kernels.
parent 6ec28e6a
......@@ -563,13 +563,13 @@ sub rootPreConfig($)
TBScriptUnlock();
return -1;
}
mysystem("$SYSCTL -w ".
mysystem2("$SYSCTL -w ".
" net.netfilter.nf_conntrack_generic_timeout=120");
mysystem("$SYSCTL -w ".
mysystem2("$SYSCTL -w ".
" net.netfilter.nf_conntrack_tcp_timeout_established=54000");
mysystem("$SYSCTL -w ".
mysystem2("$SYSCTL -w ".
" net.netfilter.nf_conntrack_max=131071");
mysystem("echo 16384 > /sys/module/nf_conntrack/parameters/hashsize");
mysystem2("echo 16384 > /sys/module/nf_conntrack/parameters/hashsize");
# These might fail on new kernels.
mysystem2("$SYSCTL -w ".
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment