-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
32 lines (22 loc) · 850 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# WTMP Logger for OpenVPN
This plug-in adds support for logging connections and disconnections
from OpenVPN to the wtmp file in Unix-like systems.
## Why is this useful?
If this plug-in's in use, you can use the `last` command to check
the record/log of connections of all the clients in your VPN.
## Build instructions
Just run `make` in the source folder. This should produce a `wtmp.so` file
in the same directory.
## Using the plug-in
After the plug-in's been built with the instructions above just place it
where you see fit and modify your OpenVPN configuration like so
(please note we're using `/usr/lib/openvpn/plugins/wtmp.so` as an example
path for the plug-in):
```
(..)
plugin "/usr/lib/openvpn/plugins/wtmp.so"
(..)
```
## License
We're using GPLv3 for our license. Please take a look at the LICENSE
file for more information.