/opdt-go

Discover the actual outgoing address and port when behind a NAT.

Primary LanguageGoGNU Affero General Public License v3.0AGPL-3.0

Outgoing Port Discovery Tool

Go Reference Test Release opdt-go AUR package opdt-go-git AUR package

Discover the actual outgoing address and port when behind a NAT.

Features

  • Designed for easy and secure self-hosting.
  • XChaCha20-Poly1305 AEAD.

Usage

To get started, generate a PSK, edit the server configuration, and start the server:

openssl rand -base64 32
sudo nano /etc/opdt-go/config.json
sudo systemctl enable --now opdt-go

Run the program in client mode to discover the client address and port:

opdt-go -client '[2001:db8:bd63:362c:2071:a0f6:827:ab6a]:20220' -clientBind ':10128' -clientPSK 'XbQZKDJTbbhuSwF0muQx6L9swsAmf0VOYIApri7nHUQ='

License

AGPLv3