Skip to content

GSM-VPN/gateway-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gateway Server

Handles login, VPN server registration, server selection, peer registration, and persisted lease state.

Requirements

  • Node.js
  • TypeScript
  • Fastify

Setup

  1. Run npm install
  2. Copy .env.example to .env
  3. Set the following values:
  • AUTH_SECRET
  • INVITE_CODE
  • GATEWAY_SHARED_SECRET
  • HTTP_PORT
  • GATEWAY_STATE_FILE if you want a custom state path

Run

npm run dev

Build

npm run build

Notes

  • Registered VPN server data and lease state are stored in .data/gateway-leases.json by default.
  • The gateway no longer uses static VPN_SERVER_A_URL / VPN_SERVER_B_URL entries. VPN servers register themselves through /vpn/register.

About

광주소프트웨어마이스터고 VPN | Gateway

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors