generate local wireguard keys

This commit is contained in:
2026-02-09 15:09:04 +01:00
parent 9bfb100e2c
commit 26ff19a57b
2 changed files with 12 additions and 0 deletions

View File

@@ -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
View 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.