Documentation
¶
Index ¶
Constants ¶
const ( On = true Off = false )
const (
DefaultPort = 1024
)
Variables ¶
This section is empty.
Functions ¶
func SetupTunAsEnclave ¶
SetupTunAsEnclave sets up a tun interface and returns a ready-to-use file descriptor.
func SetupTunAsProxy ¶
SetupTunAsProxy sets up a tun interface and returns a ready-to-use file descriptor.
func ToggleNAT ¶
ToggleNAT toggles our iptables NAT rules, which ensure that the enclave can talk to the Internet.
func TunToVsock ¶
TunToVsock forwards network packets from the tun device to our TCP-over-VSOCK connection. The function keeps on forwarding packets until we encounter an error or EOF. Errors (including EOF) are written to the given channel.
func VsockToTun ¶
VsockToTun forwards network packets from our TCP-over-VSOCK connection to the tun interface. The function keeps on forwarding packets until we encounter an error or EOF. Errors (including EOF) are written to the given channel.
Types ¶
This section is empty.