2022-08-02 17:08:05 -07:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# vpn-stack
|
|
|
|
# A set of bash scripts for installing and managing a WireGuard VPN server.
|
|
|
|
# https://git.stack-source.com/msb/vpn-stack
|
|
|
|
# Copyright (c) 2022 Matthew Saunders Brown <matthewsaundersbrown@gmail.com>
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
#
|
|
|
|
# wg-client-list.sh
|
|
|
|
# list all client configs available on the server
|
|
|
|
|
2023-03-13 13:13:13 -07:00
|
|
|
# load include file
|
|
|
|
source $(dirname $0)/wg.sh
|
2022-08-02 17:08:05 -07:00
|
|
|
|
|
|
|
# prints a table with username & device split in to columns
|
2023-03-13 13:13:13 -07:00
|
|
|
(echo "Client" && echo "---------------" && cd /etc/wireguard/clients/ && ls -1 *.conf)|sed 's|\.conf$||g'
|