How to Set Up Peer-to-Peer VPN with Tinc on Ubuntu 22.04

How to Set Up Peer-to-Peer VPN with Tinc on Ubuntu 22.04 How to Set Up Peer-to-Peer VPN with Tinc on Ubuntu 22.04 Author: Łukasz Bodziony Email: lukasz@bodziony.net.pl DevOps Services: bodziony.net.pl Published: June 2025 Introduction Tinc is a mesh VPN daemon that supports peer-to-peer encrypted tunnels. Unlike hub-and-spoke VPNs, Tinc dynamically builds a full mesh network, allowing each node to communicate directly. In this tutorial, Łukasz Bodziony walks you through installing and configuring Tinc on Ubuntu 22.04 to create a resilient P2P VPN. Prerequisites Two or more Ubuntu 22.04 servers (or VMs) with public or private IPs Sudo/root access on each node Firewall ports UDP 655 (customizable) open between peers Step 1: Install Tinc sudo apt update sudo apt install -y tinc Step 2: Create VPN Network Directory Structure On each node repla...