OpenVPN 2.4.0, Management 'status 2' possibile bug

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See https://forums.openvpn.net/viewtopic.php?f=30&t=21589 for an example.
Clodo
OpenVPN User
Posts: 28
Joined: Mon Oct 10, 2011 11:25 pm

OpenVPN 2.4.0, Management 'status 2' possibile bug

Postby Clodo » Fri Mar 10, 2017 12:13 pm

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?

Clodo
OpenVPN User
Posts: 28
Joined: Mon Oct 10, 2011 11:25 pm

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

Postby Clodo » Fri Mar 10, 2017 12:31 pm

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 )


Return to “Server Administration”

Who is online

Users browsing this forum: No registered users and 3 guests