generate local wireguard keys
This commit is contained in:
2
Makefile
2
Makefile
@@ -8,6 +8,8 @@ help: ## Print the help message
|
||||
sort | \
|
||||
column -s ':' -t
|
||||
|
||||
include wg.mk
|
||||
|
||||
.PHONY: check
|
||||
check: ## Check you have all dependencies
|
||||
@command -v graph-easy >/dev/null || { echo "Install perl-graph-easy" && exit 1 ;}
|
||||
|
||||
10
wg.mk
Normal file
10
wg.mk
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
/etc/wireguard/dmz_private_key: | /bin/wg
|
||||
$| genkey > $@
|
||||
chmod 700 $@
|
||||
|
||||
/etc/wireguard/dmz_public_key: /etc/wireguard/dmz_private_key | /bin/wg
|
||||
$| pubkey < $< > $@
|
||||
|
||||
.PHONY: wgkeys
|
||||
wgkeys: /etc/wireguard/dmz_public_key ## Create dmz-keys on your machine for wiregurd.
|
||||
Reference in New Issue
Block a user