summaryrefslogtreecommitdiff
path: root/docs/network-interfaces.rst
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-01-18 13:05:25 -0800
committerhagbard <vyosdev@derith.de>2019-01-18 13:05:25 -0800
commitce02006259e45ea9b0ab5f30ac3f1639d2338505 (patch)
treec59833c33cbe1b6a1cb282c44e01a5d0474b6348 /docs/network-interfaces.rst
parentf2d084017398e930ea3c2fef7d66e5f3eaab76ba (diff)
downloadvyos-documentation-ce02006259e45ea9b0ab5f30ac3f1639d2338505.tar.gz
vyos-documentation-ce02006259e45ea9b0ab5f30ac3f1639d2338505.zip
operational command for wireguard interface stats.
Diffstat (limited to 'docs/network-interfaces.rst')
-rw-r--r--docs/network-interfaces.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/network-interfaces.rst b/docs/network-interfaces.rst
index cc0f100f..36c63da5 100644
--- a/docs/network-interfaces.rst
+++ b/docs/network-interfaces.rst
@@ -904,6 +904,23 @@ your peer should have knowledge if its content.
wg01# set interfaces wireguard wg01 peer to-wg02 preshared-key 'rvVDOoc2IYEnV+k5p7TNAmHBMEGTHbPU8Qqg8c/sUqc='
wg02# set interfaces wireguard wg01 peer to-wg01 preshared-key 'rvVDOoc2IYEnV+k5p7TNAmHBMEGTHbPU8Qqg8c/sUqc='
+**operational commands**
+
+.. code-block:: sh
+
+ vyos@wg01# show interfaces wireguard wg01
+
+ interface: wg01
+ public key: xHvgSJC8RTClfvjc0oX6OALxU6GGLapjthjw7x82CSw=
+ private key: (hidden)
+ listening port: 12345
+
+ peer: 9Ek3R30mG6Vk+GHsENtPF0b9Ul+ftxx4dDBa1bdBxX8=
+ endpoint: 192.168.0.142:12345
+ allowed ips: 10.2.0.0/24
+ latest handshake: 4 minutes, 22 seconds ago
+ transfer: 860 B received, 948 B sent
+
.. _RFC4862: https://tools.ietf.org/html/rfc4862
.. _RFC4291: http://tools.ietf.org/html/rfc4291#section-2.5.1
.. _RFC7348: https://datatracker.ietf.org/doc/rfc7348/