firewall

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 26 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 ApplyDesktopACLDefaults added in v1.8.0

func ApplyDesktopACLDefaults()

ApplyDesktopACLDefaults enforces default-deny inbound (and forward) on the mesh iface for Desktop builds. Server ACL / egress / ingress rules are not applied on the device — policy is enforced server-side. Outbound stays open.

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 RefreshACLInterface added in v1.8.0

func RefreshACLInterface()

RefreshACLInterface is a no-op outside Windows (WFP ACL iface bind).

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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