Page MenuHomeVyOS Platform

OpenVPN: Add "Tunnel IP" column in "show openvpn server" operational command
Closed, ResolvedPublic

Description

In latest 1.3.1-S1 version, the "tunnel ip" column is missing. This column provides the client's assigned tunnel address and this makes easy to know which client is getting which tunnel ip address from the defined subnet.

vyos@vyos# run sh openvpn server

OpenVPN status on vtun0

Client CN       Remote Host           Local Host            TX bytes    RX bytes   Connected Since
---------       -----------           ----------            --------    --------   ---------------

backend         10.97.253.12:37198    N/A                   4.5 KB      4.4 KB     2022-04-20 17:31:21

backend         10.97.253.13:36881    N/A                   4.4 KB      4.4 KB     2022-04-20 17:31:28

It used to be present in older versions(1.2.4):

vyos@vyos# run sh openvpn server status

OpenVPN server status on vtun0 []

Client CN       Remote IP       Tunnel IP       TX byte RX byte Connected Since
---------       ---------       ---------       ------- ------- ---------------
backend         10.97.253.12    10.100.0.2         6.0K    6.5K Sat Apr 16 12:12:57 2022
backend         10.97.253.13    10.100.0.3         6.0K    6.5K Sat Apr 16 12:12:59 2022

openvpn status file:

vyos@vyos# sudo less /run/openvpn/vtun0.status
OpenVPN CLIENT LIST
Updated,2022-04-20 17:44:12
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
backend,10.97.253.12:37198,6126,6194,2022-04-20 17:31:21
backend,10.97.253.13:36881,6085,6153,2022-04-20 17:31:28
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
10.100.0.3,backend,10.97.253.13:36881,2022-04-20 17:31:28
10.100.0.2,backend,10.97.253.12:37198,2022-04-20 17:31:21
GLOBAL STATS
Max bcast/mcast queue length,0

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3.1-S1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

SrividyaA changed the task status from Open to In progress.Apr 20 2022, 5:52 PM
SrividyaA created this task.
Viacheslav changed the task status from In progress to Needs testing.Jul 6 2022, 4:09 PM
jestabro changed the task status from Needs testing to Backport pending.Mar 7 2023, 8:01 PM
jestabro added a subscriber: jestabro.