Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/r0n1ns/wireguard-micro-vpn

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/r0n1ns/wireguard-micro-vpn

  • v0.0.0-20241024164945-3d9ae1454d5c
  • Source
  • Go
  • Socket score

Version published
Created
Source

WireGuard Micro VPN

Project GitHub Repository

Wireguard library

Compiled Program Description

The WireGuard Micro VPN is a simple command-line application written in Go that allows users to manage WireGuard VPN configurations. Users can configure server settings, add clients, start/stop VPN connections, and send configuration files to clients via Telegram. The program operates with both automatic and manual modes for setting up WireGuard server configurations.

Main Features:

  • Start WireGuard server in automatic or manual configuration mode.
  • Generate and display server private and public keys.
  • Add new clients to the VPN with unique keys and addresses.
  • Send client configuration files via Telegram using bot integration.
  • Start, stop, or delete client connections individually.
  • View all configured clients and their connection details.
  • Remove the WireGuard configuration and scripts, stopping the VPN server.

Instructions for Running the Compiled Program

  1. Clone the repository:
  2. git clone https://github.com/R0n1ns/wireguard-micro-vpn
  3. Install dependencies:
  4.  sudo apt install wireguard
  5. Move to folder:
  6.  cd wireguard-micro-vpn
  7. Change mod for run:
  8. chmod +x micro
  9. Run the compiled program:
  10. sudo ./micro
  11. Program Usage: After starting the program, follow the prompts to interact with the WireGuard VPN setup. The available commands include:
    • 1: Start WireGuard server (manual or automatic configuration)
    • 2: Add a new client
    • 3: Stop a client connection
    • 4: Activate a client connection
    • 5: Delete a client connection
    • 6: List all clients
    • 7: Send client configuration to Telegram
    • -2: Remove WireGuard configuration and stop the server
    • -1: Exit the program

Automatic Configuration Mode:

When starting the WireGuard server, you can choose automatic mode by entering 0 when prompted. In this mode, the server will use default settings such as port 51820 and network interface eth0.

Manual Configuration Mode:

If you choose manual configuration by entering 1, you will be prompted to enter the server's port, network interface name, and server IP. You will also be required to provide a bot token for Telegram integration.

Telegram Integration:

The program uses a Telegram bot to send client configuration files directly to users. You must provide a valid bot token when prompted during the setup or add client processes.

Error Handling

If an error occurs during the execution of the program, it will automatically attempt to recover and reload the saved configuration from data.json.

Exiting the Program

To safely exit the program, enter -1 at any time. This will save the current state and terminate the program.

FAQs

Package last updated on 24 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc