Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1013 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 1013 Bytes

A basic VPN over WebRTC client

Before getting started

Try more stable alternatives like n2n. This project is just for fun.

Getting started

Installation

Run npm install to get all dependencies

Run with own server

  1. Run nodejs server -p $PORT on server to accept tcp connections
  2. Run sudo nodejs client -h $HOST -p $PORT on each client, so they can find each other.

Run using https://appr.tc as a server

Run sudo nodejs client -r $ROOM_NUMBER -rp $ROOM_PASSPHRASE on each client (quite unstable solution with it's limitations by design)

Run without sudo

  1. Make a copy of nodejs executable.
  2. Run sudo setcap CAP_NET_ADMIN=ep /path/to/new/nodejs/executable
  3. Run client using the new executable (no sudo required)

Testing

Run npm test

Debugging

Run npm run debug and use Chrome DevTools to connect to this node. Follow the code to see what can be inspected there.