-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pex: add support for figuring out the external data port via STUN ser…
…vers When establishing a direct connection on the auth/PEX port via DHT, both sides need to know the externally mapped data port number in order to establish a wireguard connection. If there is an existing data connection, the port can be queried via PEX over the tunnel. If that is not available, an external public server is needed in order to poke a hole in the NAT. The easiest way to do this is to use STUN, since there are a lot of public servers available. The servers can be configured via the network data, based on the assumption, that an auth exchange with network data update can be done directly Signed-off-by: Felix Fietkau <nbd@nbd.name>
- Loading branch information
Showing
12 changed files
with
734 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.