Description
n2n is a light peer-to-peer VPN that creates virtual networks able to pass through intermediate firewalls. Two elements make up a network. A supernode is a server with a publicly reachable port that lets edge nodes announce themselves and find each other. Edge nodes are the computers that join a virtual network. A virtual network shared by edge nodes is called a community, one supernode can relay several communities, and one computer can belong to several communities at once. An encryption key can protect the packets inside a community. n2n tries to set up a direct UDP connection between edge nodes when it can, and falls back to relaying through the supernode when a special NAT device blocks the direct path. The quick setup runs an edge node on two hosts so they can ping each other, and the README strongly advises choosing a custom community name and a secret key to keep other users out. It also explains how to run your own supernode on a public server such as a VPS by opening a single port, installing the package and starting a supernode service. Manual compilation steps for Linux are included, and the README advises using the latest stable release because the dev branch is not guaranteed to be backward compatible. The project is public on GitHub, and some Linux distributions already package n2n.…
Highlights
- Peer-to-peer VPN for virtual networks
- Passes through firewalls and NAT
- Direct UDP with supernode relay fallback
- Encrypted communities
- Run your own supernode
Ratings & Reviews
No ratings yet
Be the first to rate N2n.
People also visit

Gravitl
Netmaker automates fast, secure, distributed virtual networks using WireGuard
N2n FAQ
What is n2n?
A light peer-to-peer VPN that lets computers join a shared virtual network, even behind firewalls.
How do the computers connect?
Edge nodes try a direct UDP connection first. The supernode relays the traffic when a direct connection is not possible.
Do I need a server?
You need a supernode. You can use the public one, or run your own on a public server such as a VPS by opening one port.
How do I keep my network private?
The README advises choosing a custom community name and a secret encryption key, and running your own supernode.
How do I install it?
Many Linux distributions package n2n, so sudo apt install n2n works on some of them. Packages for most distributions are on ntop's repositories, and the README covers manual compilation.
Which version should I use?
The latest stable release, because the dev branch is not guaranteed to be backward compatible.
What are the best N2n alternatives?
Popular alternatives to N2n include N3n, newnode-helper and Wireguard P2p. See all N2n alternatives


