<% vpns.each do |name,config| %> <% status = stati[name] %>

OpenVPN Status for <%= name %>

Client List

<% status.client_list.each do |client| %> <% end %>
Common Name Real Address Data Received Data Sent Connected Since
<%= client[0] %> <%= client[1] %> <%= client[2].to_i.as_bytes %> <%= client[3].to_i.as_bytes %> <%= client[4].strftime('%-d.%-m.%Y %H:%M:%S') %>

Routing Table

<% status.routing_table.each do |route| %> <% end %>
Virtual Address Common Name Real Address Last Ref
<%= route[0] %> <%= route[1] %> <%= route[2] %> <%= route[3].strftime('%-d.%-m.%Y %H:%M:%S') %>

Global Stats

<% status.global_stats.each do |global| %> <% end %>
<%= global[0] %>: <%= global[1] %>
<% end %>