Gonc – Netcat with P2P Nat Traversal
Gonc is a Golang-based networking tool that enables peer-to-peer communication with automated NAT traversal. It allows users to establish secure, encrypted connections for file sharing and remote shell access using only a shared passphrase.
Why it matters
This tool simplifies complex network configurations for P2P file transfers, making secure, direct communication more accessible to non-technical users.
gonc is a Golang-based netcat tool designed to facilitate peer-to-peer communication. Its main features include:
🔁 Automated NAT Traversal : Zero configuration. Both sides only need to agree on a passphrase. By using the -p2p parameter, peers can automatically discover each other’s network addresses and establish a point-to-point connection through NAT traversal, leveraging public STUN and MQTT services for address exchange.
🔒 End-to-End Encrypted with Mutual Authentication : Supports TLS for TCP and DTLS for UDP encrypted transmission, with passphrase-based mutual identity authentication.
🧩 Flexible Service Configuration : With the -e parameter, you can flexibly set the application to serve each connection. For example, -e /bin/sh can provide a remote cmd shell. You can also use built-in virtual commands for convenient SOCKS5 service, HTTP file service, and traffic forwarding.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in