initial commit
This commit is contained in:
commit
43e8780420
7 changed files with 62 additions and 0 deletions
14
templates/networkinterface.j2
Normal file
14
templates/networkinterface.j2
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue