make wireguard peers file
This commit is contained in:
5
wg.mk
5
wg.mk
@@ -22,3 +22,8 @@ wgkeys.rec: wireguard/dmz_public_key
|
||||
|
||||
wireguard/dmz.conf: xecut/nimbus/dmz.conf | wireguard/dmz_private_key
|
||||
sed 's/PRIVATE_KEY/$(shell cat $|)/' $< > $@
|
||||
|
||||
###### Wireguard configuration #####
|
||||
|
||||
wireguard/wg_peers.txt: wgkeys.rec | xecut/nimbus/wireguard_server.fmt
|
||||
recsel $< -t $(basename $<) | recfmt -f $| > $@
|
||||
|
||||
4
xecut/nimbus/wg_peer.fmt
Normal file
4
xecut/nimbus/wg_peer.fmt
Normal file
@@ -0,0 +1,4 @@
|
||||
[Peer]
|
||||
PublicKey = {{pubkey}}
|
||||
AllowedIPs = 10.0.0.2/32
|
||||
|
||||
Reference in New Issue
Block a user