Documentation
¶
Overview ¶
Package local provide functions for setting routes
Index ¶
- func DisableForwardingOnInterfaces(aliases ...string) error
- func EnableForwardingOnInterfaces(aliases ...string) error
- func GetMacIface(ipstring string) (string, error)
- func SetIPForwarding() error
- func SetIPForwardingFreeBSD() error
- func SetIPForwardingMac() error
- func SetIPForwardingUnix() error
- func SetIPForwardingWindows() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableForwardingOnInterfaces ¶ added in v1.8.0
DisableForwardingOnInterfaces is a no-op on non-Windows builds.
func EnableForwardingOnInterfaces ¶ added in v1.8.0
EnableForwardingOnInterfaces is a no-op on non-Windows builds.
func GetMacIface ¶
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.