Page MenuHomeVyOS Platform

Wireguard interfaces are not shown in op-mode
Closed, ResolvedPublicBUG

Description

The operational commands described at https://docs.vyos.io/en/crux/configuration/interfaces/wireguard.html#opcmd-show-interfaces-wireguard and https://docs.vyos.io/en/crux/configuration/interfaces/wireguard.html#opcmd-show-interfaces-wireguard-interface don't match what I see when I run the commands on 1.2.8. For example "show interfaces wireguard" isn't a valid command. See the results below.

vyos@fw1:~$ show version
Version:          VyOS 1.2.8
Release Train:    crux

Built by:         Sentrium S.L.
Built on:         Mon 21 Jun 2021 17:21 UTC
Build UUID:       0acd8f9d-7cd3-48b7-b9c8-64d83e6183a0
Build Commit ID:  4ed04df4311601

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:  Dell Inc.
Hardware model:   PowerEdge R210 II
Hardware S/N:     Unknown
Hardware UUID:    Unknown

Copyright:        VyOS maintainers and contributors
vyos@fw1:~$ show interfaces wireguard

  Incomplete command: show interfaces wireguard

vyos@fw1:~$ show interfaces wireguard wg0
interface: wg0
  public key: <HIDDEN>
  private key: (hidden)
  listening port: 51820

peer: <HIDDEN>
  preshared key: (hidden)
  endpoint: <HIDDEN>:52733
  allowed ips: 10.0.99.5/32
  latest handshake: 46 seconds ago
  transfer: 2.46 KiB received, 1.46 KiB sent

peer: <HIDDEN>
  preshared key: (hidden)
  allowed ips: 10.0.99.3/32

peer: <HIDDEN>
  preshared key: (hidden)
  allowed ips: 10.0.99.4/32
vyos@fw1:~$

Details

Difficulty level
Easy (less than an hour)
Version
1.2.8
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.2.9

Event Timeline

This comment was removed by c-po.

hi @absolutesantaja

The operational command "show interfaces <interface-type> " has been fixed in the latest rolling and equuleus release.

vyos@test02:~$ show interfaces wireguard
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
wg01             10.10.0.1/30                      u/u
vyos@test02:~$ show version

Version:          VyOS 1.4-rolling-202109071434
Release Train:    sagitta

Also tested in VyOS 1.3-beta-202109071306 version.

There is no need to fix the documentation as the error would be fixed in the next epa release.

Are you saying "show interfaces wireguard" is being back-ported to crux 1.2.9 or something? If not then the crux documentation is still wrong.

@absolutesantaja this is definately a bug in the 1.2.9 op-mode commands

c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).
Viacheslav renamed this task from Crux Wireguard Documentation Seems Incorrect to Wireguard interfaces are not shown in op-mode.Oct 29 2021, 5:30 PM

Its fixed in 1.3.0 release:

vyos@vyos:~$ sh int wireguard
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
wg01             10.1.0.1/30                       u/u  VPN-to-wg02

Version:

vyos@vyos# run sh ver

Version:          VyOS 1.3.0
Release train:    equuleus

Built by:         Sentrium S.L.
Built on:         Sun 19 Dec 2021 12:59 UTC
Build UUID:       ff458f8a-3ef7-453c-a7f9-4aeb6d03012e
Build commit ID:  2f691bb2f61e96-dirty

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest