Socket
Socket
Sign inDemoInstall

openvpn-bin

Package Overview
Dependencies
17
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    openvpn-bin

Initialize a openvpn instance for mac, windows & linux


Version published
Weekly downloads
6
decreased by-53.85%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

openvpn-bin

npm version

Initialize a Open Vpn Instance on Mac, Windows & Linux

Installation

npm install openvpn-bin --save

Documentation

Constructor

Argument: vpnOpts Object passed to .initialize()

{
  host: '127.0.0.1', //management console host, defualts to 127.0.0.1 
  port: 1337, //set the port for the management console, recommended this is omited so openvpn-bin finds available port for you
  scriptSecurity: 2,  //defualts to 2
  config: 'config.ovpn', //path of openvpn config file, defualts to config.ovpn
  cwd: process.cwd(), //set the current working directory for openvpn, defualts to process.cwd()
  up: '', //optional, should be only used for mac and linux (for dns)
  down: '' //optional, should be only used for mac and linux (for dns)
}

Argument: openvpnPath String passed to .initialize() with absolute or relative path to openvpn executable

path.normalize('../bin/openvpn.exe')

.initialize()

Returns Promice on sucsessfull startup of openvpn:

{
  port: spesifyed or auto found port,
  host: spesifyed or defualt 127.0.0.1
}

.shutdown()

It returns a Promise that is fulfilled when OpenVpn instance is terminated

module.initialize([openvpnPath],[vpnOpts])

Initialize OpenVpn Instance using [openvpnPath] [vpnOpts] arguments

Support

If you're having any problem, please raise an issue on GitHub and I'll be happy to help.

Contribute

License

The project is licensed under the GPL-3.0 license.

Keywords

FAQs

Last updated on 10 Sep 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc