https://github.com/database64128/opdt-go
Discover the actual outgoing address and port when behind a NAT.
https://github.com/database64128/opdt-go
Last synced: 3 months ago
JSON representation
Discover the actual outgoing address and port when behind a NAT.
- Host: GitHub
- URL: https://github.com/database64128/opdt-go
- Owner: database64128
- License: agpl-3.0
- Created: 2022-12-02T12:39:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-18T09:23:00.000Z (3 months ago)
- Last Synced: 2026-02-18T13:59:25.204Z (3 months ago)
- Language: Go
- Size: 139 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Outgoing Port Discovery Tool
[](https://pkg.go.dev/github.com/database64128/opdt-go)
[](https://github.com/database64128/opdt-go/actions/workflows/test.yml)
[](https://github.com/database64128/opdt-go/actions/workflows/release.yml)
[](https://aur.archlinux.org/packages/opdt-go)
[](https://aur.archlinux.org/packages/opdt-go-git)
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:
```bash
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:
```bash
opdt-go -client '[2001:db8:bd63:362c:2071:a0f6:827:ab6a]:20220' -clientBind ':10128' -clientPSK 'XbQZKDJTbbhuSwF0muQx6L9swsAmf0VOYIApri7nHUQ='
```
## License
[AGPLv3](LICENSE)