{"id":232,"date":"2005-04-04T18:02:05","date_gmt":"2005-04-04T17:02:05","guid":{"rendered":"http:\/\/wp.devco.net\/?p=232"},"modified":"2009-10-09T17:05:44","modified_gmt":"2009-10-09T16:05:44","slug":"openvpn_status_parser_for_php","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2005\/04\/04\/openvpn_status_parser_for_php.php","title":{"rendered":"OpenVPN Status Parser for PHP"},"content":{"rendered":"

I use the excellent OpenVPN<\/a> for my VPN needs. Since version 2 it supports printing a nice status file of currently connected clients but unfortunately it is a bit ugly.
\nI wrote a simple php library that can parse this file and returns a associative array of logged in users, you can then easily display it using
Smarty<\/a> or whatever you use for templating.
\nYou can download version 1.0
here<\/a> you can also check out the README<\/a> and a Sample<\/a> that I did using Smarty.<\/p>\n","protected":false},"excerpt":{"rendered":"

I use the excellent OpenVPN for my VPN needs. Since version 2 it supports printing a nice status file of currently connected clients but unfortunately it is a bit ugly. I wrote a simple php library that can parse this file and returns a associative array of logged in users, you can then easily display […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[121,19,42,63],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/232"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":1,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":698,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/232\/revisions\/698"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}