This commit is contained in:
Oliver Atkinson 2023-11-05 04:22:42 -07:00
parent eaa62c07ca
commit a9b27b650f

View File

@ -21,10 +21,9 @@ export SERVER_PUBLIC_KEY=$(wg pubkey < $SERVER_KEYFILE)
create_client() {
mkdir clients 2> /dev/null
umask 077
CPRK="/tmp/cprk"
CPUK="/tmp/cpuk"
CPRK="/tmp/cprk" # client private key
CPUK="/tmp/cpuk" # client public key
wg genkey | tee $CPRK | wg pubkey > $CPUK
#export CLIENT_PRIVATE_KEY=$(cat $CLIENT_PK_FILE)
export CLIENT_PRIVATE_KEY=$(cat $CPRK)
export CLIENT_PUBLIC_KEY=$(cat $CPUK)
export IP_ADDR=$1