{"id":18513375,"url":"https://github.com/jbox-web/openvpn-status","last_synced_at":"2025-08-13T14:20:38.281Z","repository":{"id":146101429,"uuid":"188910254","full_name":"jbox-web/openvpn-status","owner":"jbox-web","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-27T21:49:08.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T12:44:38.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbox-web.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-27T21:18:38.000Z","updated_at":"2019-05-27T21:49:09.000Z","dependencies_parsed_at":"2023-05-15T00:00:16.532Z","dependency_job_id":null,"html_url":"https://github.com/jbox-web/openvpn-status","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jbox-web/openvpn-status","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fopenvpn-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fopenvpn-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fopenvpn-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fopenvpn-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbox-web","download_url":"https://codeload.github.com/jbox-web/openvpn-status/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fopenvpn-status/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270255101,"owners_count":24553163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T15:37:55.286Z","updated_at":"2025-08-13T14:20:38.181Z","avatar_url":"https://github.com/jbox-web.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenVPN Status\n\nA bunch of scripts to get connected clients on OpenVPN.\n\nThe solution consists in 2 scripts :\n\n* `openvpn_status.sh`\n* `openvpn_status.rb`\n\n`openvpn_status.sh` is an [expect](https://linux.die.net/man/1/expect) script to run a telnet session on [OpenVPN management interface](https://openvpn.net/community-resources/management-interface/) and get clients status.\n\n`openvpn_status.rb` is a Ruby script to beautiful the output.\n\n## Install\n\n```ruby\ngem install terminal-table\ngem install colorize\n```\n\nPuts the `openvpn_status.sh` script in `/usr/local/bin` and `openvpn_status.rb` anywhere you want.\n\n## Example\n\n```sh\nroot@salt:~# ./openvpn_status.rb\nConnected clients\n+-------------+----------------------+-----------------+----------------------+----------------+------------+--------------------------+--------------------------+--------------------+-----------+---------+\n| Common Name | Real Address         | Virtual Address | Virtual IPv6 Address | Bytes Received | Bytes Sent | Connected Since          | Connected Since (time_t) | Username           | Client ID | Peer ID |\n+-------------+----------------------+-----------------+----------------------+----------------+------------+--------------------------+--------------------------+--------------------+-----------+---------+\n| myvpn       | xxx.xxx.xxx.xxx:port | 10.2.0.3        |                      | 17907492       | 270980404  | Mon May 27 22:11:07 2019 | 1558987867               | nicoladmin@free.fr | 16        | 0       |\n| myvpn       | xxx.xxx.xxx.xxx:port | 10.2.0.2        |                      | 497502         | 3200293    | Mon May 27 22:08:12 2019 | 1558987692               | nicoladmin@free.fr | 14        | 0       |\n+-------------+----------------------+-----------------+----------------------+----------------+------------+--------------------------+--------------------------+--------------------+-----------+---------+\n\nRouting table\n+-----------------+-------------+----------------------+--------------------------+-------------------+\n| Virtual Address | Common Name | Real Address         | Last Ref                 | Last Ref (time_t) |\n+-----------------+-------------+----------------------+--------------------------+-------------------+\n| 10.2.0.2        | myvpn       | xxx.xxx.xxx.xxx:port | Mon May 27 23:32:58 2019 | 1558992778        |\n| 10.2.0.3        | myvpn       | xxx.xxx.xxx.xxx:port | Mon May 27 23:45:14 2019 | 1558993514        |\n+-----------------+-------------+----------------------+--------------------------+-------------------+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbox-web%2Fopenvpn-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbox-web%2Fopenvpn-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbox-web%2Fopenvpn-status/lists"}