give wireguard clients unique IPs

This commit is contained in:
2026-03-10 17:15:26 +01:00
parent 7548252912
commit 905b6c030f
4 changed files with 11 additions and 4 deletions

7
wg.mk
View File

@@ -20,8 +20,11 @@ wgkeys.rec: wireguard/dmz_public_key
git commit -m"add wireguard key for $(name)"
$(info Remember to git push)
wireguard/dmz.conf: xecut/nimbus/dmz.conf | wireguard/dmz_private_key
sed 's/PRIVATE_KEY/$(shell cat $|)/' $< > $@
wireguard/dmz.conf: wireguard/dmz_bare.conf | wireguard/dmz_private_key
sed 's#PRIVATE_KEY#$(shell cat $|)#' $< > $@
wireguard/dmz_bare.conf: wgkeys.rec | xecut/nimbus/dmz.conf
recsel $< -t $(basename $<) -e 'name = "$(name)"' | recfmt -f $| > $@
###### Wireguard configuration #####