generate local wireguard keys
This commit is contained in:
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