statistics file format not respected in point-to-point?
Hi Everyone,
I have a side to side (point to point) configuration. Meaning no client or server involved.
It comes up fine.
I did set this as well in the config file:
status /tmp/openvpn_hello_status.log 5
status-version 3
When i look at the file:
OpenVPN STATISTICS
Updated,Thu Feb 19 13:41:29 2015
TUN/TAP read bytes,0
TUN/TAP write bytes,0
TCP/UDP read bytes,1480
TCP/UDP write bytes,1647
Auth read bytes,1480
END
This looks like format 1 when looking at the client-server statistics file case. Is this correct or is the actually format 3?
The statistics file for server is more like I expected:
TITLE OpenVPN 2.3.4 i486-gnu-linux-gnu [SSL (OpenSSL)] [EPOLL] [MH]
[IPv6] built on Feb 19 2015
TIME Thu Feb 19 13:25:08 2015 1424377508 HEADER CLIENT_LIST Common Name Real Address Virtual Address Bytes Received Bytes Sent Connected Since Connected
Since_(time_t) UsernameCLIENT_LIST blabla 172.21.2.127:1194 192.168.0.6 5701
5769 Thu Feb 19 13:19:07 2015 1424377147 UNDEF
HEADER ROUTING_TABLE Virtual Address Common Name Real Address
Last Ref Last Ref (time_t)ROUTING_TABLE 192.168.0.6 blabla 172.21.2.127:1194 Thu
Feb 19 13:19:08 2015 1424377148
GLOBAL_STATS Max bcast/mcast queue length 0
END
Hi,
Quoted 36 lines · Reinoud Koornstra
Hi Everyone,
I have a side to side (point to point) configuration. Meaning no client or server involved.
It comes up fine.
I did set this as well in the config file:status
/tmp/openvpn_hello_status.log5
status-version 3When i look at the file:
OpenVPN STATISTICS
Updated,Thu Feb 19 13:41:29 2015
TUN/TAP read bytes,0
TUN/TAP write bytes,0
TCP/UDP read bytes,1480
TCP/UDP write bytes,1647
Auth read bytes,1480
ENDThis looks like format 1 when looking at the client-server statistics file case. Is this correct or is the actually format 3?
The statistics file for server is more like I expected:TITLE OpenVPN 2.3.4 i486-gnu-linux-gnu [SSL (OpenSSL)] [EPOLL] [MH]
[IPv6] built on Feb 19 2015TIME Thu Feb 19 13:25:08 2015 1424377508 HEADER CLIENT_LIST Common Name Real Address Virtual Address Bytes Received Bytes Sent Connected Since Connected
Since_(time_t)UsernameCLIENT_LISTblabla 172.21.2.127:1194 192.168.0.6 5701
5769 Thu Feb 19 13:19:07 2015 1424377147 UNDEF
HEADERROUTING_TABLEVirtual Address Common Name Real Address
Last Ref Last Ref (time_t)ROUTING_TABLE192.168.0.6 blabla 172.21.2.127:1194 Thu
Quoted 5 lines
Feb 19 13:19:08 2015 1424377148
GLOBAL_STATSMax bcast/mcast queue length 0
END
In point-to-point mode there are very little statistics reported. Only some global server statistics are printed out, which is what you are seeing. As there is no concept of a client list, there is no report on the connected clients.
The code for point-to-point mode does not differentiate on the status version - it simply calls one function which prints out the stats you see above.
HTH,
JJK