1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

iiab-vpn PR #3800 doc: Table of IPs/usernames/etc

This commit is contained in:
A Holt 2024-09-18 19:51:15 -04:00 committed by GitHub
parent e98cd76ec0
commit 086087b65b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ echo -e " tailscale down\n"
echo -e "\e[4mTo permanently log out of VPN:\e[0m\n"
echo -e " tailscale logout\n"
# More useful output than 'tailscale status'
# More useful table of IPs/usernames/etc than 'tailscale status'
echo -e "\e[44;1mVPN peers: (rightmost column = online/offline)\e[0m\n"
tailscale status --json | jq -r '.Self,.Peer[] | .Tags[] + " " + .TailscaleIPs[] + " " + .HostName + " " + .DNSName + " " + .OS + " " + .Relay + " " + (.Online|tostring)' | sort -V | column -t
echo