firewall

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package firewall provides a compliance plugin for firewall-specific security checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin implements the CompliancePlugin interface for Firewall compliance.

func NewPlugin

func NewPlugin() *Plugin

NewPlugin creates a new Firewall compliance plugin.

func (*Plugin) Description

func (fp *Plugin) Description() string

Description returns the plugin description.

func (*Plugin) GetControlByID

func (fp *Plugin) GetControlByID(id string) (*plugin.Control, error)

GetControlByID returns a specific control by ID.

func (*Plugin) GetControls

func (fp *Plugin) GetControls() []plugin.Control

GetControls returns all Firewall controls.

func (*Plugin) Name

func (fp *Plugin) Name() string

Name returns the plugin name.

func (*Plugin) RunChecks

func (fp *Plugin) RunChecks(config *model.OpnSenseDocument) []plugin.Finding

RunChecks performs Firewall compliance checks against the OPNsense configuration.

func (*Plugin) ValidateConfiguration

func (fp *Plugin) ValidateConfiguration() error

ValidateConfiguration validates the plugin configuration.

func (*Plugin) Version

func (fp *Plugin) Version() string

Version returns the plugin version.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL