management localhost 7505
echo "load-stats" | nc localhost 7505 >INFO:OpenVPN Management Interface Version 3 -- type 'help' for more info SUCCESS: nclients=0,bytesin=1110000,bytesout=2220000 # grepで特定要素だけ取り出したい grep -oP 'nclients=\K(\d+)' /tmp/openvpn-load.txt 0 grep -oP 'bytesin=\K(\d+)' /tmp/openvpn-load.txt 1110000 grep -oP 'bytesout=\K(\d+)' /tmp/openvpn-load.txt 2220000
echo "status" | nc localhost 7505 ... HEADER,CLIENT_LIST,Common Name,Real Address,Virtual Address,Virtual IPv6 Address,Bytes Received,Bytes Sent,Connected Since,Connected Since (time_t),Username,Client ID,Peer ID,Data Channel Cipher ...
sudo openssl x509 -in /etc/openvpn/server/server.crt -noout -enddate notAfter=May 01 02:03:04 2027 GMT sudo openssl x509 -in /etc/openvpn/server/ca.crt -noout -enddate notAfter=May 01 02:03:04 2027 GMT
記事: