From 79a2d1124bb075d2a38919884cbb82dd203054e3 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Fri, 1 Jan 2021 07:55:25 -0700 Subject: [PATCH] `wg show` on server after setting up interface. --- vpnerator.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vpnerator.sh b/vpnerator.sh index 25371ab..942ce1c 100755 --- a/vpnerator.sh +++ b/vpnerator.sh @@ -129,6 +129,9 @@ exec_sudo ip link set mtu 1420 up dev "${INTERFACE_NAME}" exec_sudo iptables -A FORWARD -i "${INTERFACE_NAME}" -j ACCEPT exec_sudo iptables -A FORWARD -o "${INTERFACE_NAME}" -j ACCEPT exec_sudo iptables -t nat -A POSTROUTING -s "${CLIENT_ADDR}" -o "\${DEFAULT_IFACE}" -j MASQUERADE + +echo +sudo wg show "$INTERFACE_NAME" END if [ "$?" -ne 0 ]; then @@ -159,7 +162,7 @@ sleep 1 echo sudo wg show "${INTERFACE_NAME}" echo -echo "Connected! Interrupt or press Enter to disconnect and stop server." +echo "Connected! SIGINT or Enter to disconnect and stop server." # clear sensitive variables from memory PSK=