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

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.