Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,382 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build codecov License Stars Forks Issues

TunGo

TunGo running on a retro CRT terminal

TunGo is a lightweight VPN designed for modern needs: fast, secure, and open-source.

Install and configure · Download binaries · Documentation

Features

  • UDP, TCP and WebSocket transports
  • 0 allocs/packet on the dataplane hot path
  • Interactive TUI for Linux, macOS and Windows

Performance

In-memory dataplane benchmark with 1400-byte packets on an Apple M4 Pro:

Path Time/packet Throughput Allocs/packet
UDP client → server ~2.7 µs ~4.3 Gbit/s 0
UDP server → client ~2.6 µs ~4.3 Gbit/s 0
TCP client → server ~2.6 µs ~4.3 Gbit/s 0
TCP server → client ~2.6 µs ~4.3 Gbit/s 0

Covers encryption, routing, validation and decryption. Excludes TUN, sockets, kernel, firewall/NAT and network I/O; not end-to-end VPN throughput.

Reproduce the benchmark
cd src
go test ./infrastructure/tunnel/dataplane/server/udp_chacha20 ./infrastructure/tunnel/dataplane/client/udp_chacha20 ./infrastructure/tunnel/dataplane/server/tcp_chacha20 ./infrastructure/tunnel/dataplane/client/tcp_chacha20 -run '^$' -bench FullCycle -benchmem

About

A lightweight, fast, cross-platform userspace VPN secured with modern cryptography

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages