Opened 3 years ago

#856 new Bug / Defect

Missing port in "status 2" management in "Real Address" field (under ipv6 config)

Reported by: Clodo Owned by:
Priority: major Milestone:
Component: IPv6 Version: OpenVPN 2.4.0 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: ipv6, management
Cc:

Description

If i request 'status 2' in management interface within a both ipv4/ipv6 server, the port in "Real Address" field is missing.

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). For this reason for me it's a "Bug / Defect".

In the function "mroute_addr_print_ex" in \src\openvpn\mroute.c the flag MR_WITH_PORT is not even contemplated in MR_ADDR_IPV6 case switch.
Port is also missing in ipv6 section of "struct mroute_addr" in \src\openvpn\mroute.h
The recommended format is [ipv6]:port, the same format used by ip6tables in dnat ipv6 port forwarding.

Change History (0)

Note: See TracTickets for help on using tickets.