local

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: 6 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

Overview

Package local provide functions for setting routes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableForwardingOnInterfaces added in v1.8.0

func DisableForwardingOnInterfaces(aliases ...string) error

DisableForwardingOnInterfaces is a no-op on non-Windows builds.

func EnableForwardingOnInterfaces added in v1.8.0

func EnableForwardingOnInterfaces(aliases ...string) error

EnableForwardingOnInterfaces is a no-op on non-Windows builds.

func GetMacIface

func GetMacIface(ipstring string) (string, error)

GetMacIface - gets mac interface

func SetIPForwarding

func SetIPForwarding() error

SetIPForwarding - Sets IP forwarding if it's mac or linux. Skip until the host is enrolled (Server and/or TenantID present), and always skip user-owned Desktop devices (they never act as gateways/relays/egress; OwnerUsername is set only after registration, so an unregistered startup must not enable forwarding either).

func SetIPForwardingFreeBSD

func SetIPForwardingFreeBSD() error

SetIPForwardingFreeBSD - sets the ipforwarding for freebsd

func SetIPForwardingMac

func SetIPForwardingMac() error

SetIPForwardingMac - sets ip forwarding for mac

func SetIPForwardingUnix

func SetIPForwardingUnix() error

SetIPForwardingUnix - sets the ipforwarding for linux

func SetIPForwardingWindows added in v0.18.7

func SetIPForwardingWindows() error

SetIPForwardingWindows is a no-op on non-Windows builds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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