Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

VPN Manager Bot

Discord bot for managing WireGuard VPN servers on Google Cloud Platform.

Setup

  1. Install dependencies

    npm install
  2. Configure environment

    cp env.example .env
    # Fill in your Discord bot token and GCP project ID
  3. Deploy GCP service account

    • Place discord-service-account.json in project root
    • Ensure service account has Compute Engine permissions
  4. Configure firewall rules

    • Allow wireguard port in GCP firewall
  5. Run bot

    npm run dev    # Development
    npm run build  # Production build
    npm start      # Production start

Commands

  • /add-server <region> - Create VPN server
  • /add-client <region> - Add VPN client
  • /start-server <region> - Start server
  • /stop-server <region> - Stop server
  • /delete-server <region> - Delete server
  • /list-server - List all servers
  • /stop-all - Stop all servers
  • /ping - Bot health check

Security Note

⚠️ Warning: WireGuard configuration files are sent through Discord and may be visible to Discord staff. Consider this when using in production environments.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages