Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateEnabledList ¶
func GenerateEnabledList() error
GenerateEnabledList creates enabled.list from effective config
func GetRuleStats ¶
GetRuleStats returns statistics about enabled rules
func InitializeCustomRules ¶
func InitializeCustomRules() error
InitializeCustomRules creates empty custom.rules if it doesn't exist
Types ¶
type RulesDir ¶
type RulesDir struct {
BaseDir string // /var/lib/suricata/rules
EnabledList string // /etc/nftban/suricata/rules/enabled.list
CustomRules string // /etc/nftban/suricata/rules/custom.rules
}
RulesDir contains paths to Suricata rules
func GetRulesPaths ¶
GetRulesPaths returns paths based on distro config
Click to show internal directories.
Click to hide internal directories.