Quantcast
Channel: Active questions tagged openvpn - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 827

Writing logs for OpenVPN in Ubuntu18

$
0
0

I've installed OpenVPN on Ubuntu18, and it works. I'd like to have a log containing only the times when users connect and disconnect. Found a hint how to do it at [https://github.com/furlongm/openvpn-monitor/issues/27]

use OpenVPN's hooks to have it log when users connect/disconnect.It's trivial to write a script that reads env vars and writes them toa log file. Just add that script to OpenVPN's config file as:client-connect /path/to/script client-disconnect /path/to/script

I understand how to edit the config file, but not the part about environment vars.


Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>