Skip to content

CodeTrol/webrtc-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A WebRTC VPN client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published