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
OUTPUT
(1.2.3.4 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,1.2.3.4:5552,1159072,4339219,Wed Nov 21 17:47:54 2018 ROUTING TABLE Virtual Address,Common Name,Real Address,Last Ref 10.5.0.2,srvrv,1.2.3.4:5552,Wed Nov 21 17:53:42 2018 GLOBAL STATS Max bcast/mcast queue length,1 END
Leave a Reply