From 9ffe2959222382954311e1520302c0c6abbb43de Mon Sep 17 00:00:00 2001 From: c0de Date: Mon, 25 Jan 2021 11:35:04 -0600 Subject: [PATCH] add utility to find wipeos vpn ip based off of cert if --- home/bin/vpnip | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 home/bin/vpnip diff --git a/home/bin/vpnip b/home/bin/vpnip new file mode 100755 index 0000000..f3a88b4 --- /dev/null +++ b/home/bin/vpnip @@ -0,0 +1,4 @@ +#!/bin/bash + +ssh -t login.wipeos.com "grep $1 /var/log/openvpn/openvpn-status.log" 2>/dev/null | cut -d$'\n' -f2 | cut -d',' -f1 +