Answer the question
In order to leave comments, you need to log in
How to find out if the openvpn process is connected to the tunnel interface or just hangs?
How to find out if the openvpn process is connected to the tunnel interface or just hangs?
ps -ax lists 18 openvpn processes and ifconfig only lists 15 tap interfaces. So some fell off. How to find out what these processes are?
I use psutils to get python processes and netifaces to get connections.
Answer the question
In order to leave comments, you need to log in
Openvpn, if configured correctly, has a status file for current sessions.
Add to the server config
And do at any time cat on this file
[email protected]:~# cat /var/run/openvpn-server.status
OpenVPN CLIENT LIST
Updated,Sat Jul 30 11:31:40 2016
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
user3,10.124.228.105:42972,2117077,2327219,Tue Jul 26 13:50:13 2016
user4,10.124.105.1:49420,6284997,6730873,Tue Jul 19 04:14:12 2016
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
192.168.99.10,user3,10.124.228.105:42972,Tue Jul 26 13:50:16 2016
192.168.99.6,user4,10.124.105.1:49420,Tue Jul 19 04:14:14 2016
GLOBAL STATS
Max bcast/mcast queue length,16
END
[email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question