wf

package
v0.0.0-...-3caaee0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 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