dn42-ansible/peerconf.sh.j2
2025-01-25 14:26:51 -08:00

4 lines
No EOL
199 B
Django/Jinja

#!/bin/sh
set -x && \
source /usr/local/bin/mkpeerkey.sh && \
echo "AS 4242422002 llv6 {{ llv6 }} wgkey $(cat /etc/systemd/network/$1.pub) IPv4 $(curl -4s api.ipify.io) IPv6 $(curl -6s api.ipify.io)"