You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
359 B
Django/Jinja
8 lines
359 B
Django/Jinja
#!/bin/bash
|
|
{% for peer in wireguard_bb_peers %}
|
|
ip link add bb{{ peer.name }} type ip6gretap remote {{ peer.address }} local {{ wireguard_bb_address }} ttl 255 dev wgbackbone
|
|
ip link set mtu 1280 dev bb{{ peer.name }}
|
|
ip link set up dev bb{{ peer.name }}
|
|
ip address add {{ wireguard_bb_gre_ipv4 }} peer {{ peer.gre_ipv4 }} dev bb{{ peer.name }}
|
|
{% endfor %}
|