1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2025-06-28 14:30:23 +02:00

Convert into gem

This commit is contained in:
cn
2013-05-03 15:32:08 +02:00
parent 2f2160b985
commit 283c05d9d3
15 changed files with 208 additions and 77 deletions

14
examples/status.v1 Normal file
View File

@ -0,0 +1,14 @@
OpenVPN CLIENT LIST
Updated,Sun Jan 1 23:42:00 2012
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
foo,1.2.3.4:1234,11811160064,4194304,Sun Jan 1 23:42:00 2012
bar,1.2.3.5:1235,512,2048,Sun Jan 1 23:42:00 2012
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
192.168.0.0/24,foo,1.2.3.4:1234,Sun Jan 1 23:42:00 2012
192.168.66.2,bar,1.2.3.5:1235,Sun Jan 1 23:42:00 2012
192.168.66.3,foo,1.2.3.4:1234,Sun Jan 1 23:42:00 2012
2001:db8:0:0::1000,bar,1.2.3.5:1235,Sun Jan 1 23:42:00 2012
GLOBAL STATS
Max bcast/mcast queue length,42
END

12
examples/status.v2 Normal file
View File

@ -0,0 +1,12 @@
TITLE,OpenVPN 2.1_rc15 mipsel-unknown-linux-gnu [SSL] [LZO1] [EPOLL] built on Mar 27 2009
TIME,Sun Jan 1 23:42:00 2012,1238702330
HEADER,CLIENT_LIST,Common Name,Real Address,Virtual Address,Bytes Received,Bytes Sent,Connected Since,Connected Since (time_t)
CLIENT_LIST,foo,1.2.3.4:1234,11811160064,4194304,Sun Jan 1 23:42:00 2012,1238702330
CLIENT_LIST,bar,1.2.3.5:1235,512,2048,Sun Jan 1 23:42:00 2012,1238702330
HEADER,ROUTING_TABLE,Virtual Address,Common Name,Real Address,Last Ref,Last Ref (time_t)
ROUTING_TABLE,192.168.0.0/24,foo,1.2.3.4:1234,Sun Jan 1 23:42:00 2012,1238702330
ROUTING_TABLE,192.168.66.2,bar,1.2.3.5:1235,Sun Jan 1 23:42:00 2012,1238702330
ROUTING_TABLE,192.168.66.3,foo,1.2.3.4:1234,Sun Jan 1 23:42:00 2012,1238702330
ROUTING_TABLE,2001:db8:0:0::1000,bar,1.2.3.5:1235,Sun Jan 1 23:42:00 2012,1238702330
GLOBAL_STATS,Max bcast/mcast queue length,42
END

12
examples/status.v3 Normal file
View File

@ -0,0 +1,12 @@
TITLE OpenVPN 2.1_rc15 mipsel-unknown-linux-gnu [SSL] [LZO1] [EPOLL] built on Mar 27 2009
TIME Sun Jan 1 23:42:00 2012 1238702330
HEADER CLIENT_LIST Common Name Real Address Virtual Address Bytes Received Bytes Sent Connected Since Connected Since (time_t)
CLIENT_LIST foo 1.2.3.4:1234 11811160064 4194304 Sun Jan 1 23:42:00 2012 1238702330
CLIENT_LIST bar 1.2.3.5:1235 512 2048 Sun Jan 1 23:42:00 2012 1238702330
HEADER ROUTING_TABLE Virtual Address Common Name Real Address Last Ref Last Ref (time_t)
ROUTING_TABLE 192.168.0.0/24 foo 1.2.3.4:1234 Sun Jan 1 23:42:00 2012 1238702330
ROUTING_TABLE 192.168.66.2 bar 1.2.3.5:1235 Sun Jan 1 23:42:00 2012 1238702330
ROUTING_TABLE 192.168.66.3 foo 1.2.3.4:1234 Sun Jan 1 23:42:00 2012 1238702330
ROUTING_TABLE 2001:db8:0:0::1000 bar 1.2.3.5:1235 Sun Jan 1 23:42:00 2012 1238702330
GLOBAL_STATS Max bcast/mcast queue length 42
END