Documentation
¶
Overview ¶
Package dnstunnel is the node's DNS tunnel engine (experimental): the Mistgate fork of MasterDnsVPN, in-process. The node is the authoritative server of one zone per inbound, and the tunnel rides inside ordinary DNS queries that the devices' recursive resolvers deliver to it, so it works where only DNS gets out. The engine owns the sockets (UDP and TCP port 53 on each public IPv4 address of the node, see listen.go) and feeds every DNS message to the fork's server; the fork answers the zone itself (SOA, NS, A, REFUSED for names outside it), decrypts the tunnel and calls the engine to connect a stream (through Env.Egress) or to resolve a DNS query (through the node's resolvers).
Nothing runs until an enabled inbound exists: no socket, no goroutine, no key file.
Index ¶
Constants ¶
const Protocol = "dnstunnel"
Variables ¶
var Addrs = hostAddrs
Addrs lists the IPv4 addresses the engine listens on. Production: every public-looking address of the node's interfaces (hostAddrs); tests replace it with loopback.
Functions ¶
Types ¶
This section is empty.