Documentation ¶
Overview ¶
Package proxymap contains a mapping table for ephemeral localhost ports used by tailscaled on behalf of remote Tailscale IPs for proxied connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
Mapper tracks which localhost ip:ports correspond to which remote Tailscale IPs for connections proxied by tailscaled.
This is then used (via the WhoIsIPPort method) by localhost applications to ask tailscaled (via the LocalAPI WhoIs method) the Tailscale identity that a given localhost:port corresponds to.
func (*Mapper) RegisterIPPortIdentity ¶
RegisterIPPortIdentity registers a given node (identified by its Tailscale IP) as temporarily having the given IP:port for whois lookups. The IP:port is generally a localhost IP and an ephemeral port, used while proxying connections to localhost when tailscaled is running in netstack mode.
func (*Mapper) UnregisterIPPortIdentity ¶
UnregisterIPPortIdentity removes a temporary IP:port registration made previously by RegisterIPPortIdentity.