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 --- Makefile | 2 +- op-mode-definitions/wireguard.xml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 17ae34a18..b626bbd8b 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ clean: .PHONY: test test: -# PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators --verbose + PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators --verbose .PHONY: sonar sonar: 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