initial commit

This commit is contained in:
nd 2020-08-02 01:25:44 +02:00
commit 43e8780420
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
7 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,14 @@
auto wg_{{ item.name }}
iface w_{{ item.name }} inet static
{% for i in item.ip %}
address {{ i }}
{% endif %}
pre-up ip link add $IFACE type wireguard
pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
post-down ip link del $IFACE
iface w_{{ item.name }} inet6 static
# static IP address
{% for i in item.ip6 %}
address {{ i }}
{% endif %}