acl

package
v0.23.8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

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

DefaultManager uses firewall manager to handle

func Create

func Create(iface IFaceMapper) (*DefaultManager, error)

Create creates a firewall manager instance for the Linux

func (*DefaultManager) ApplyFiltering

func (d *DefaultManager) ApplyFiltering(networkMap *mgmProto.NetworkMap)

ApplyFiltering firewall rules to the local firewall manager processed by ACL policy.

If allowByDefault is ture it appends allow ALL traffic rules to input and output chains.

func (*DefaultManager) Stop

func (d *DefaultManager) Stop()

Stop ACL controller and clear firewall state

type IFaceMapper added in v0.21.1

type IFaceMapper interface {
	Name() string
	Address() iface.WGAddress
	IsUserspaceBind() bool
	SetFilter(iface.PacketFilter) error
}

IFaceMapper defines subset methods of interface required for manager

type Manager

type Manager interface {
	ApplyFiltering(networkMap *mgmProto.NetworkMap)
	Stop()
}

Manager is a ACL rules manager

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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