Skip to content

elyerrlabs/vpn-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPN Node

VPN Node is a lightweight service that allows you to easily transform any server into a VPN node.

It is designed to integrate directly with the VPN module of OAuth2 Passport Server, enabling centralized VPN node management across distributed infrastructures.

Currently, VPN Node provides support for WireGuard and includes a scalable multi-instance architecture, allowing multiple independent WireGuard configurations to run efficiently on a single machine.

The project is focused on simplicity, lightweight deployment, and easy integration.


Environment Configuration

The service uses the following environment variables:

Control Server (OAuth Passport Server)

OPS=https://auth.elyerr.xyz

Application Environment

APP_ENV=production

Available values:

  • production
  • development

Authentication

Authentication support is currently disabled.

AUTH=0

Authorization Header

Authorization header support is currently disabled.

Proxy-Authorization: Bearer {TOKEN}|{DEVICE_ID}

Proxy Configuration

Proxy support is currently disabled.

SOCKS Proxy (Disabled)

PROXY_SOCKS_HOST=127.0.0.1
PROXY_SOCKS_PORT=1090
PROXY_SOCKS_SSL_CERT="/ssl/cert.pem"
PROXY_SOCKS_SSL_KEY="/ssl/key.pem"

Client Proxy (Disabled)

PROXY_CLIENT_HOST=0.0.0.0
PROXY_CLIENT_PORT=1080
PROXY_CLIENT_SSL_CERT="/ssl/cert.pem"
PROXY_CLIENT_SSL_KEY="/ssl/key.pem"

Deployment

VPN Node is designed for simple and fast deployment.

Steps to deploy

  1. Configure the OAuth Passport Server URL in the environment variable:
OPS=https://auth.elyerr.xyz
  1. Set the environment to production:
APP_ENV=production
  1. Run the production deployment script:
./deploy-prod-slim.sh
  1. Register the node inside the OAuth Passport Server VPN module.

  2. Create the required WireGuard interfaces depending on your infrastructure needs.

  3. Open the necessary network ports on the server where VPN Node is running.


Features

  • WireGuard support
  • Multi-instance WireGuard architecture
  • Easy VPN node deployment
  • Lightweight infrastructure design
  • Distributed node support
  • SSL/TLS support
  • Integration with OAuth2 Passport Server VPN module

About

VPN Node is an essential component of VPN Control, enabling the VPN server to support multiple servers and multiple instances of the same server, increasing the system’s versatility

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages