blob: 97985f99d211b995a84fe8acd6c31cccab1eb424 (
plain)
1
2
3
4
5
6
7
|
#!/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 %}
|