Update VPN user scripts
- Sort VPN usernames when listing users - Cleanup
This commit is contained in:
parent
abbf19f296
commit
34ba47e79b
@ -60,7 +60,7 @@ if [ -z "$VPN_USER" ] || [ -z "$VPN_PASSWORD" ]; then
|
|||||||
show_intro
|
show_intro
|
||||||
echo
|
echo
|
||||||
echo "List of existing VPN usernames:"
|
echo "List of existing VPN usernames:"
|
||||||
cut -f1 -d : /etc/ipsec.d/passwd
|
cut -f1 -d : /etc/ipsec.d/passwd | LC_ALL=C sort
|
||||||
echo
|
echo
|
||||||
echo "Enter the VPN username you want to add or update."
|
echo "Enter the VPN username you want to add or update."
|
||||||
read -rp "Username: " VPN_USER
|
read -rp "Username: " VPN_USER
|
||||||
|
@ -53,7 +53,7 @@ if [ -z "$VPN_USER" ]; then
|
|||||||
show_intro
|
show_intro
|
||||||
echo
|
echo
|
||||||
echo "List of existing VPN usernames:"
|
echo "List of existing VPN usernames:"
|
||||||
cut -f1 -d : /etc/ipsec.d/passwd
|
cut -f1 -d : /etc/ipsec.d/passwd | LC_ALL=C sort
|
||||||
echo
|
echo
|
||||||
echo "Enter the VPN username you want to delete."
|
echo "Enter the VPN username you want to delete."
|
||||||
read -rp "Username: " VPN_USER
|
read -rp "Username: " VPN_USER
|
||||||
|
@ -98,8 +98,6 @@ IPsec/L2TP and IPsec/XAuth ("Cisco IPsec") modes.
|
|||||||
WARNING: *ALL* existing VPN users will be removed and replaced
|
WARNING: *ALL* existing VPN users will be removed and replaced
|
||||||
with the users listed below.
|
with the users listed below.
|
||||||
|
|
||||||
Please double check before continuing!
|
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
|
|
||||||
Updated list of VPN users (username | password):
|
Updated list of VPN users (username | password):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user