List active connections on OpenVPN (Linux)
PROBLEM: I would like to check all active connections to my VPN server.
SOLUTION: Simple one line command
CAT just simply shows what is inside the status log with current connections and IP addresses.
root@server:~# cat /etc/openvpn/openvpn-status.log
(126.96.36.199 is a host address with port used)
OpenVPN CLIENT LIST
Updated,Wed Nov 21 17:53:43 2018
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
srvrv,188.8.131.52:5552,1159072,4339219,Wed Nov 21 17:47:54 2018
Virtual Address,Common Name,Real Address,Last Ref
10.5.0.2,srvrv,184.108.40.206:5552,Wed Nov 21 17:53:42 2018
Max bcast/mcast queue length,1