Skip to content

Instantly share code, notes, and snippets.

@wayrt7
wayrt7 / phantun_wireguard_openwrt_client.md
Created May 5, 2025 19:39 — forked from RillJ/phantun_wireguard_openwrt_client.md
Phantun + WireGuard Full-Tunnel VPN on OpenWrt Guide

Guide to Setting Up Phantun with WireGuard on OpenWrt

This guide provides a detailed walkthrough on establishing a high-performance, full-tunnel VPN across your network using Phantun and WireGuard on an OpenWrt-equipped router. This setup is particularly beneficial for environments where UDP traffic faces restrictions, yet a swift VPN solution is necessary for the entire network. Combining Phantun with WireGuard presents the fastest TCP tunneling solution available as of Q1 2024, as far as my knowledge extends. Given the scarcity of comprehensive resources on this topic, this guide aims to fill that gap and assist others in achieving a rapid, unrestricted network connection.

Table of Contents

Install Phantun

Install

Onekey Install: curl -fsSL https://gist.githubusercontent.com/MisakaMikoto-35c5/0e469016745fbf27480c39ae3156f280/raw/install-phantun.sh | sudo bash Or on OpenWRT: curl -fsSL https://gist.githubusercontent.com/MisakaMikoto-35c5/0e469016745fbf27480c39ae3156f280/raw/install-phantun.sh | sh

Make sure unzip and curl is installed!!!

Usage