A wrapper for the openvpn management interface for rust applications
Clone or download
Latest commit e8a4a8c Jan 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src More documentation tweaks Jan 19, 2019
tests clippy fixes Jan 19, 2019
.gitignore Initial commit Jan 1, 2019
.travis.yml added to linting to test files Jan 6, 2019
Cargo.toml Bumped to 0.3.0 Jan 19, 2019
LICENSE Initial commit Jan 1, 2019
README.md More documentation tweaks Jan 19, 2019

README.md

Openvpn Management

Build Status License Crates.io Docs.rs

openvpn-management is a wrapper to the openvpn management interface for rust applications.

Install:

The crate is called openvpn-management. You can use it by adding it as a dependency to your Cargo.toml file:

[dependencies]
openvpn-management = "*"

Features:

  • Getting all connected client information

Basic usage:

// build the client:
let mut event_manager = openvpn_management::CommandManagerBuilder::new()
    .management_url("localhost:5555")
    .build()
    .unwrap();
// get the current status:
let status = event_manager
    .get_status()
    .unwrap();
// get client information:
let clients = status.clients();

Roadmap

This library is in the early stages of development and as such only supports extracting client information using the status command. PRs with additional functionality would always be welcome.

License

This project is licensed under the MIT License - see the LICENSE file for details