Crate openvpn_management

Source
Expand description

openvpn-management is a wrapper to the openvpn management interface.

§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:

use openvpn_management::EventManager;
// 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();

Structs§

Client
Contains useful information on a client which is connected to the openvpn server
CommandManager
CommandManagerBuilder
Status
Contains the marshalled response from the status command sent to the openvpn server

Enums§

OpenvpnError

Traits§

EventManager

Type Aliases§

Result