MCPcopy Index your code
hub / github.com/coder/coder / NetworkingNAT

Struct NetworkingNAT

tailnet/test/integration/network.go:120–124  ·  view source on GitHub ↗

NetworkingNAT creates a fake internet and sets up "NAT" forwarding rules, either easy or hard. See createFakeInternet. NAT is achieved through a single iptables masquerade rule.

Source from the content-addressed store, hash-verified

118// See createFakeInternet.
119// NAT is achieved through a single iptables masquerade rule.
120type NetworkingNAT struct {
121 StunCount int
122 Client1Hard bool
123 Client2Hard bool
124}
125
126// SetupNetworking creates a fake internet with multiple STUN servers and sets up
127// NAT forwarding rules. Client NATs are controlled by the switches ClientXHard, which if true, sets up hard

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected