package
5.0.0+incompatible
Repository: https://github.com/qwenode/tailscale.git
Documentation: pkg.go.dev

# Functions

NewInternet returns a network that simulates the internet.

# Constants

AddressAndPortDependentFirewall specifies a destination address-and-port dependent firewall.
AddressAndPortDependentNAT specifies a destination address-and-port dependent NAT.
AddressDependentFirewall specifies a destination address dependent firewall.
AddressDependentNAT specifies a destination address dependent NAT.
Continue means the packet should be processed by the "local sockets" logic of the Machine.
DefaultMappingTimeout is the default timeout for a NAT mapping.
DefaultSessionTimeout is the default timeout for a firewall session.
Drop means the packet should not be handled further.
EndpointIndependentFirewall specifies a destination endpoint independent firewall.
EndpointIndependentNAT specifies a destination endpoint independent NAT.

# Structs

Firewall is a simple stateful firewall that allows all outbound traffic and filters inbound traffic based on recently seen outbound traffic.
No description provided by the author
A Machine is a representation of an operating system's network stack.
No description provided by the author
Packet represents a UDP packet flowing through the virtual network.
SNAT44 implements an IPv4-to-IPv4 source NAT (SNAT) translator, with optional builtin firewall.

# Interfaces

A PacketHandler can look at packets arriving at, departing, and transiting a Machine, and filter or mutate them.

# Type aliases

FirewallType is the type of filtering a stateful firewall does.
NATType is the mapping behavior of a NAT device.
A PacketVerdict is a decision of what to do with a packet.