@infraspecdev/mikrotik-wireguard-client-manager
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

A Node.js package for managing WireGuard VPN clients on MikroTik routers via SSH.

This project has a Code of Conduct.

Table of contents

const { MikroTikWireGuardClientManager, MikroTikSSHClient }  = require('@infraspecdev/mikrotik-wireguard-client-manager')

const sshClient = new MikroTikSSHClient("192.168.1.1", 22, "admin", "password");

const vpnManager = new MikroTikWireGuardClientManager(sshClient);
const clients = await vpnManager.listClients();

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 22 or higher is required.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the npm install command:

npm install @infraspecdev/mikrotik-wireguard-client-manager

Features

  • Add WireGuard Client
  • Remove WireGuard Client
  • List WireGuard Clients

Running Tests

To run the test suite, first install the dependencies:

npm install

Then run npm test:

npm test

Contributing

The project welcomes all constructive contributions. Contributions take many forms, from code for bug fixes and enhancements, to additions and fixes to documentation, additional tests, triaging incoming pull requests and issues, and more!

See the Contributing Guide for more technical details on contributing.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @infraspecdev/mikrotik-wireguard-client-manager

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

59.4 kB

Total Files

51

Last publish

Collaborators

  • arihant_hirawat
  • vjdhama-infraspec
  • nimish.gj
  • infraspecbot