Skip to content

anirudhsudhir/snoopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snoopy

A VPN written in Rust.

Inspired by https://write.yiransheng.com/vpn


Demo - netcat between two containers

peer_1

Virtual Network IP: 10.0.0.2

peer_2

Virtual Network IP: 10.0.0.3

Netcat between two containers


Usage

  1. Install just - https://just.systems/man/en/

  2. Build the binary and image

just build-image
  1. Start the peers
docker compose up
  1. Exec into the containers from two different terminal sessions
just exec-peer-1 # peer-1

# another session
just exec-peer-2 # peer-2
  1. Use the virtual addresses for communication

Example:

# peer_1
nc -vl 10.0.0.2 12345

# from peer_2
nc -v 10.0.0.2 12345
  1. Stop the containers
docker compose down

Credits


About

A VPN written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published