a simple & crap vpn implemented via tun/tap, currently worked on linux
this vpn simply simulate a hub which broadcast all the packets to elsewhere except source machine.
- install
gcc
,g++
- install other build requirements(for ubuntu)
apt install libssl-dev libpcap-dev
- create certificate
make create_crt
- create server binary
make
- run server and listen to a port
./vpn_server 48763
- create client binary
make
- run client and connected to remote vpn server to accquire address
sudo ./vpn_client <server ip> 48763