Update scripts

This commit is contained in:
Laura Hausmann 2020-04-04 11:59:55 +02:00
parent f13ebc703f
commit c2f696cae3
Signed by: zotan
GPG key ID: 5EC1D38FFC321311

View file

@ -34,14 +34,6 @@ sudo tee -a /etc/systemd/network/$iface.network << END
Name = $iface
END
if [ ! -z "$tun6" ]; then
sudo tee -a /etc/systemd/network/$iface.network << END
[Address]
Address = $ip6/128
Peer = $tun6/128
END
fi
if [ ! -z "$tun4" ]; then
sudo tee -a /etc/systemd/network/$iface.network << END
@ -50,15 +42,26 @@ sudo tee -a /etc/systemd/network/$iface.network << END
Address = $ip4/32
Peer = $tun4/32
END
fi
sudo tee -a /etc/bird/peers/$node.conf << END
protocol bgp $node from dnpeers {
neighbor $tun4 as $asn;
}
END
fi
if [ ! -z "$tun6" ]; then
sudo tee -a /etc/systemd/network/$iface.network << END
[Address]
Address = $ip6/128
Peer = $tun6/128
END
sudo tee -a /etc/bird/peers/$node.conf << END
protocol bgp ${node}_v6 from dnpeers {
neighbor $tun6%$iface as $asn;
}
END
fi