mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Load conntrack in sys utils
This commit is contained in:
parent
dcb7c70684
commit
7f5bba3fc4
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue