preftype

package
v1.71.0-pre Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: BSD-3-Clause Imports: 1 Imported by: 13

Documentation

Overview

Package preftype is a leaf package containing types for various preferences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetfilterMode

type NetfilterMode int

NetfilterMode is the firewall management mode to use when programming the Linux network stack.

const (
	NetfilterOff      NetfilterMode = 0 // remove all tailscale netfilter state
	NetfilterNoDivert NetfilterMode = 1 // manage tailscale chains, but don't call them
	NetfilterOn       NetfilterMode = 2 // manage tailscale chains and call them from main chains
)

These numbers are persisted to disk in JSON files and thus can't be renumbered or repurposed.

func ParseNetfilterMode added in v1.52.0

func ParseNetfilterMode(s string) (NetfilterMode, error)

func (NetfilterMode) String

func (m NetfilterMode) String() string

Jump to

Keyboard shortcuts

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