tailscale.comtailscale.com/net/netkernelconf Index | Files

package netkernelconf

import "tailscale.com/net/netkernelconf"

Package netkernelconf contains code for checking kernel netdev config.

Index

Functions

func CheckUDPGROForwarding

func CheckUDPGROForwarding(tunInterface, defaultRouteInterface string) (warn, err error)

CheckUDPGROForwarding checks if the machine is optimally configured to forward UDP packets between the default route and Tailscale TUN interfaces. It returns a non-nil warn in the case that the configuration is suboptimal. It returns a non-nil err in the case that an error is encountered while performing the check.

func SetUDPGROForwarding

func SetUDPGROForwarding(tunInterface, defaultInterface string) error

SetUDPGROForwarding enables UDP GRO forwarding for the provided default interface. It validates if the provided tun interface has UDP segmentation enabled and, if not, returns an error. See https://tailscale.com/kb/1320/performance-best-practices#linux-optimizations-for-subnet-routers-and-exit-nodes

Source Files

netkernelconf.go netkernelconf_linux.go

Version
v1.84.0 (latest)
Published
May 21, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 day ago

Tools for package owners.