From b3892fe872202b97d8ed58a60d15d7d0efa7a22f Mon Sep 17 00:00:00 2001 From: hagbard Date: Mon, 20 Aug 2018 21:39:06 +0000 Subject: T790: wireguard: add status commands --- op-mode-definitions/wireguard.xml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'op-mode-definitions/wireguard.xml') diff --git a/op-mode-definitions/wireguard.xml b/op-mode-definitions/wireguard.xml index 29fce33b6..a7e156d8d 100644 --- a/op-mode-definitions/wireguard.xml +++ b/op-mode-definitions/wireguard.xml @@ -36,6 +36,40 @@ + + + + + show wireguard interface information + + + + + sudo wg show "$4" + + + + show all allowed-ips for the specified interface + + sudo wg show "$4" allowed-ips + + + + show all endpoints for the specified interface + + sudo wg show "$4" endpoints + + + + show all peer IDs for the specified interface + + sudo wg show "$4" peers + + + + + + -- cgit v1.2.3