mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Partially Implements traffic blocking (#5387)
This commit is contained in:
parent
4c415907df
commit
bcc717689f
16 changed files with 284 additions and 1 deletions
30
scripts/lua/modules/callback_definitions/host/host_ban.lua
Normal file
30
scripts/lua/modules/callback_definitions/host/host_ban.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
--
|
||||
-- (C) 2019-21 - ntop.org
|
||||
--
|
||||
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
local host_alert_keys = require "host_alert_keys"
|
||||
|
||||
-- #################################################################
|
||||
|
||||
local host_ban = {
|
||||
-- Script category
|
||||
category = user_scripts.script_categories.security,
|
||||
|
||||
default_enabled = false,
|
||||
alert_id = host_alert_keys.host_alert_host_ban,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
gui = {
|
||||
i18n_title = "alerts_dashboard.host_ban_title",
|
||||
i18n_description = "alerts_dashboard.host_ban_description",
|
||||
},
|
||||
}
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return host_ban
|
||||
Loading…
Add table
Add a link
Reference in a new issue