Skip to content

Port of the vpncmd tool in Softether to nodejs. This repo requires vpncmd installation

Notifications You must be signed in to change notification settings

moatazelmasry2/softether.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

softether

This module is a wrapper around the vpncmd utility of softether. It allows using nodejs to manipulate SoftEther server

npm i --save softether

Initialization

var VPNCMD              = require('softether')
var vpncmd = new VPNCMD({
    "softetherPath" : "/usr/local/vpnserver/vpncmd",
    "softetherURL" : "MYSERVER_URL",
    "softetherPort" : "443",
    "softetherPassword" : "password",
    "softetherHub" : "MY_HUB_NAME"
})

Functions

listSession(): object

Returns a json object

vpncmd.listSession()
    .then(function (result) {
        console.log(result)
    })

getSession(sessionName): object

Returns a json object

vpncmd.getSession("MY_SOFTETHER_SESSION_NAME")
    .then(function (result) {
        console.log(result)
    })

About

Port of the vpncmd tool in Softether to nodejs. This repo requires vpncmd installation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published