N2

n2n

Layer-two peer-to-peer VPN

Remote Access & VPN ★ 7k stars Medium setup GPL-3.0

n2n is an open-source layer-two peer-to-peer VPN that lets users build private encrypted networks across the internet. It uses a self-hosted supernode for peer discovery and NAT traversal.

Key features

  • Layer-two VPN
  • Peer-to-peer encryption
  • Self-hosted supernode
  • Cross-platform edges

Strengths

  • Released under the GPL-3.0 license
  • Mature project with 7k GitHub stars
  • Written in C
  • Tiny footprint — runs in 64 MB RAM

Is n2n secure?

OSV.dev has no published security advisories for n2n's repository. No known vulnerabilities is not proof of security: it means none have been publicly catalogued.

Source: OSV.dev, checked 2026-10-14. How this is measured.

n2n replaces

Health badge

Maintain n2n? Add its health score to your README. The badge links back to this page.

SelfHostIndex: 72 · good

Markdown
[![SelfHostIndex health score for n2n](https://selfhostindex.com/badge/n2n-vpn.svg)](https://selfhostindex.com/app/n2n-vpn/)
HTML
<a href="https://selfhostindex.com/app/n2n-vpn/"><img src="https://selfhostindex.com/badge/n2n-vpn.svg" alt="SelfHostIndex health score for n2n"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/n2n-vpn.svg
   :alt: SelfHostIndex health score for n2n
   :target: https://selfhostindex.com/app/n2n-vpn/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Compare n2n

6 head-to-head comparisons.

Similar remote access & vpn apps