23 lines
426 B
Bash
23 lines
426 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
. .env
|
||
|
filename="$(basename "$0")"
|
||
|
ifname="${filename:3:-3}"
|
||
|
|
||
|
echo "
|
||
|
[Interface]
|
||
|
PrivateKey = $(cat $DATA_DIR/privatekey)
|
||
|
ListenPort = 51820
|
||
|
Address = 10.100.1.254/32
|
||
|
|
||
|
[Peer] # adrian
|
||
|
PublicKey = 14yKNmSfD2lrWU+d/RJBPNvh9pZ/nW4bK27F9nTgvk0=
|
||
|
AllowedIPs = 10.100.1.253/32
|
||
|
|
||
|
[Peer] # Passerelle
|
||
|
PublicKey = ZTKOW5DE8jPO8oMh5hAw/c1MQSlUaVxInMPz9Zdwzwo=
|
||
|
AllowedIPs = 10.100.1.0/24,192.168.100.0/24
|
||
|
"
|