Load conntrack in sys utils

This commit is contained in:
Alfredo Cardigliano 2022-01-12 15:16:50 +01:00
parent dcb7c70684
commit 7f5bba3fc4

View file

@ -165,4 +165,15 @@ end
-- ################################################################
function sys_utils.loadConntrack()
local info = ntop.getInfo(false)
local os = info.OS
if not string.find(os, "Ubuntu 20%.") then
sys_utils.execCmd("modprobe nf_conntrack_ipv4")
end
end
-- ################################################################
return sys_utils