store wireguard client public keys
This commit is contained in:
5
wg.mk
5
wg.mk
@@ -1,3 +1,8 @@
|
|||||||
|
public_key := $(shell cat /etc/wireguard/dmz_public_key)
|
||||||
|
name := $(shell git config list | grep user.nam | cut -d= -f2)
|
||||||
|
|
||||||
|
wgkeys.rec: /etc/wireguard/dmz_public_key
|
||||||
|
recins $@ -t $(basename $@) -f name -v "$(name)" -f pubkey -v "$(public_key)"
|
||||||
|
|
||||||
/etc/wireguard/dmz_private_key: | /bin/wg
|
/etc/wireguard/dmz_private_key: | /bin/wg
|
||||||
$| genkey > $@
|
$| genkey > $@
|
||||||
|
|||||||
7
wgkeys.rec
Normal file
7
wgkeys.rec
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
%rec: wgkeys
|
||||||
|
%key: name
|
||||||
|
%type: name line
|
||||||
|
%mandatory: pubkey
|
||||||
|
|
||||||
|
name: Malin Freeborn
|
||||||
|
pubkey: loNnXRalD0ZyOLadSWm31rqOuRfEbgtX9O4/z7eSIho=
|
||||||
Reference in New Issue
Block a user