Simple library written in PHP to manage client connections to OpenVPN processes through the OpenVPN management socket.
This library supports:
- Traversing multiple OpenVPN management sockets;
- Show connected clients;
- Disconnect clients (by CN);
$connMan = new \LC\OpenVpn\ConnectionManager( [ 'tcp://localhost:11940', 'tcp://localhost:11941', ] ); $connMan->connections(); $connMan->disconnect(['foo']); // array with CNs to disconnect
Also see the example in
You can contact me with any questions or issues regarding this project. Drop me a line at firstname.lastname@example.org.
If you want to (responsibly) disclose a security issue you can also use the
PGP key with key ID
9C5EDD645A571EB2 and fingerprint
6237 BAF1 418A 907D AA98 EAA7 9C5E DD64 5A57 1EB2.