Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiransheng/wontun
write your own vpn
https://github.com/yiransheng/wontun
vpn
Last synced: 2 months ago
JSON representation
write your own vpn
- Host: GitHub
- URL: https://github.com/yiransheng/wontun
- Owner: yiransheng
- License: mit
- Created: 2023-12-07T19:51:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T02:17:08.000Z (about 1 year ago)
- Last Synced: 2024-10-29T21:59:03.129Z (3 months ago)
- Topics: vpn
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 85
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `wontun` : an insecure and fragile toy vpn
## Write up
https://write.yiransheng.com/vpn
You absolutely should not use this application over the public Internet.
## Features
* Modeled after `wireguard` without the unnecessary security features and robustness
* Notably stealing a lot from [boringtun](https://github.com/cloudflare/boringtun/blob/master/boringtun/src/device/mod.rs)
* Recognizes a subset of `wireguard` configurations
* Requires a pile of bash scripts to run (best to read the article above if you want to run the thing)## Example network topology
Terminal tab 1, using [server.conf](./server.conf):
```bash
./run.sh docker server.conf
```Terminal tab 2, using [client-B.conf](./client-B.conf)
```bash
./run.sh docker client-B.conf
```Terminal tab 3, using [ton0.conf](./tun0.conf)
```bash
./run.sh host
```Terminal tab 4 (`traceroute` from host to client-B):
```bash
traceroute to 10.10.0.2 (10.10.0.2), 64 hops max
1 10.10.0.1 0.116ms 0.179ms 0.268ms
2 10.10.0.2 0.309ms 0.287ms 0.234ms
```