Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AXtheR - Dead Simple VPN (Windows)

A high-performance, zero-dependency, point-to-point VPN for Windows. It uses Wintun for virtual networking and hand-rolled ChaCha20-Poly1305 for encrypted UDP encapsulation.

Prerequisites

To use DSVPN, you need two Windows computers (a "Client" and a "Server").

  1. Download wintun.dll (from Wintun.net) and place it in the same directory as dsvpn.exe on both machines.
  2. Ensure UDP port 51820 is open on the Server's firewall (and router, if connecting over the internet).

Step-by-Step Usage Guide

1. Generate a Secret Key

Both machines must share the exact same 256-bit encryption key. This must be a 64-character hexadecimal string. Example Key: a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90

2. Configure the "Server" (Machine A)

This is the machine you are connecting to.

  1. Open connect.bat in a text editor (Notepad, VS Code, etc.).
  2. Set the configuration as follows:
    set LOCAL_IP=10.0.0.1
    set REMOTE_IP=0.0.0.0
    set PORT=51820
    set KEY=your_64_character_secret_key_here
    (Setting REMOTE_IP to 0.0.0.0 allows the server to accept connections from any incoming IP address).
  3. Save the file and double-click connect.bat.
  4. Click Yes on the Administrator prompt. A black console window will open saying "VPN tunnel active".

3. Configure the "Client" (Machine B)

This is the machine you are connecting from.

  1. Open connect.bat in a text editor.
  2. Set the configuration as follows:
    set LOCAL_IP=10.0.0.2
    set REMOTE_IP=203.0.113.1  <-- REPLACE WITH SERVER'S PUBLIC IP
    set PORT=51820
    set KEY=your_64_character_secret_key_here  <-- EXACT SAME KEY AS SERVER
  3. Save the file and double-click connect.bat.
  4. Click Yes on the Administrator prompt.

4. Verify Connection

Once both consoles say "VPN tunnel active", your machines are connected securely!

  • From the Client, open a normal command prompt and type: ping 10.0.0.1
  • From the Server, open a normal command prompt and type: ping 10.0.0.2

All traffic leaving the Client is now encrypted, sent over UDP to the Server, decrypted, and injected into the Server's virtual network interface.

5. Disconnect

To turn off the VPN and instantly restore your normal internet connection, simply click on the black console window running the VPN and press Ctrl+C. Do not just click the "X" button on the window, as Ctrl+C ensures the routing table is safely restored.

About

Dead simple vpn

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages