wf

package
v1.69.0-pre Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firewall

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

Firewall uses the Windows Filtering Platform to implement a network firewall.

func New

func New(luid uint64) (*Firewall, error)

New returns a new Firewall for the provided interface ID.

func (*Firewall) UpdatePermittedRoutes

func (f *Firewall) UpdatePermittedRoutes(newRoutes []netip.Prefix) error

UpdatedPermittedRoutes adds rules to allow incoming and outgoing connections from the provided prefixes. It will also remove rules for routes that were previously added but have been removed.

Jump to

Keyboard shortcuts

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