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.
| 118 | // See createFakeInternet. |
| 119 | // NAT is achieved through a single iptables masquerade rule. |
| 120 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected