https://github.com/krishpranav/cvpn
A simple vpn written in C
https://github.com/krishpranav/cvpn
c clang cli linux macosx osx security vpn vpn-anonymizer vpn-client vpn-connections vpn-manager vpn-server vpn-service vpnfree
Last synced: 3 months ago
JSON representation
A simple vpn written in C
- Host: GitHub
- URL: https://github.com/krishpranav/cvpn
- Owner: krishpranav
- Created: 2021-08-27T12:28:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-08T10:47:24.000Z (almost 4 years ago)
- Last Synced: 2025-04-15T02:45:26.345Z (6 months ago)
- Topics: c, clang, cli, linux, macosx, osx, security, vpn, vpn-anonymizer, vpn-client, vpn-connections, vpn-manager, vpn-server, vpn-service, vpnfree
- Language: C
- Homepage:
- Size: 203 KB
- Stars: 15
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cvpn
A simple vpn written in C[](https://forthebadge.com)
# Features:
- this is a cli vpn like openvpn
- Runs on TCP. Works pretty much everywhere, including on public WiFi where only TCP/443 is open or reliable.
- Uses only modern cryptography, with formally verified implementations.
- Small and constant memory footprint. Doesn't perform any heap memory allocations.
- Small (~25 KB), with an equally small and readable code base. No external dependencies.
- Works on Linux, macOS
- Doesn't leak between reconnects if the network doesn't change. Blocks IPv6 on the client to prevent IPv6 leaks.# Installation:
```
git clone https://github.com/krishpranav/cvpn
cd cvpn
make
./cvpn
```- Example of using this on a server
```
sudo ./cvpn server vpnserver.key auto 1956
```- Example of using on the client
```
sudo ./cvpn client vpn.key 34.216.127.34 1959
```- for disconnection cvpn ```ctrl-c```