firewall

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TestIPv4    = "1.1.1.1"
	TestIPv6    = "2606:4700:4700::1111"
	IPv4Network = "0.0.0.0/0"
	IPv6Network = "::/0"
)

Variables

This section is empty.

Functions

func DeleteEgressGwRoutes

func DeleteEgressGwRoutes(server string)

DeleteEgressGwRoutes - deletes egress routes for the gateway

func GetLocalIPs added in v0.30.0

func GetLocalIPs() ([]net.IP, error)

GetLocalIPs retrieves all local IPs (IPv4 and IPv6) on the machine.

func Init

func Init() (func(), error)

Init - initialises the firewall controller,return a close func to flush all rules

func ProcessAclRules added in v0.30.0

func ProcessAclRules(server string, fwUpdate *models.FwUpdate)

func ProcessIngressUpdate added in v0.26.0

func ProcessIngressUpdate(server string, ingressUpdate map[string]models.IngressInfo) error

func RemoveIngressRoutingRules added in v0.26.0

func RemoveIngressRoutingRules(server string)

func SetEgressRoutes

func SetEgressRoutes(server string, egressUpdate map[string]models.EgressInfo) error

SetEgressRoutes - sets the egress route for the gateway

Types

This section is empty.

Jump to

Keyboard shortcuts

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