Page 1 of 1

OpenVPN 2.4.0, Management 'status 2' possibile bug

Posted: Fri Mar 10, 2017 12:13 pm
by Clodo
If i request 'status 2' in management interface within a both ipv4/ipv6 server, the port in "Real Address" field is missing.

Code: Select all

HEADER,CLIENT_LIST,Common Name,Real Address,Virtual Address,Virtual IPv6 Address,Bytes Received,Bytes Sent,Connected Since,Connected Since (time_t),Username,Client ID,Peer ID
CLIENT_LIST,mycommonname,81.201.180.117,10.6.0.3,fde6:7a:7d20:1::1001,668169,1731037,Fri Mar 10 11:38:04 2017,1489145884,UNDEF,39,0
The same version of OpenVPN 2.4.0, on the same machine, with a config ipv4 only, dump the "ipv4address:port" in "Real Address" field (like any previous OpenVPN version).

in \src\openvpn\mroute.c the flag MR_WITH_PORT is not even contemplated in MR_ADDR_IPV6 case switch.

It's a bug that can be fixed in the next release if i submit a patch, or it's an expected behiavour?

Re: OpenVPN 2.4.0, Management 'status 2' possibile bug

Posted: Fri Mar 10, 2017 12:31 pm
by Clodo
For completeness, i think it's must be in format

Code: Select all

ipv4:port , example:  1.2.3.4:5555
and

Code: Select all

[ipv6]:port (with square brackets), example:  [2001:4860:4860::8888]:5555
(the same format used for example by ip6tables in dnat ipv6 port forwarding: http://mirrors.deepspace6.net/Linux+IPv ... ter6..html )