Documentation
¶
Overview ¶
Package netns keeps the agent's own traffic (control plane, relay and WireGuard's UDP socket) out of the tunnel. On Linux its sockets carry Mark, which the policy routing rules installed for subnet routes and exit nodes send through the main routing table. Elsewhere it is a no-op.
Index ¶
Constants ¶
View Source
const Mark = 0x80000
Mark is the firewall mark set on the agent's own sockets.
View Source
const MarkMask = 0xff0000
MarkMask selects the bits of Mark in routing rules.
Variables ¶
This section is empty.
Functions ¶
func DialContext ¶
DialContext dials with Dialer.
func ListenConfig ¶
func ListenConfig() *net.ListenConfig
ListenConfig returns a listen config whose sockets bypass the tunnel.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.