ansible-ffibk/roles/network-fastd
Tobias Hachmer 53d30c8ded Restructure fastd configuration to define multiple instances easily
- introduce mesh subdictionary `fastd`
 - change fastd instance naming
 - change fastd network interface naming (identical with fastd instance
names)
 - change mac address prefixes
2017-10-07 00:57:35 +02:00
..
handlers Restructure network interfaces in order to use ifupdown2 2017-10-03 14:37:39 +02:00
tasks Restructure fastd configuration to define multiple instances easily 2017-10-07 00:57:35 +02:00
templates Restructure fastd configuration to define multiple instances easily 2017-10-07 00:57:35 +02:00
README.md Restructure fastd configuration to define multiple instances easily 2017-10-07 00:57:35 +02:00

Ansible role network-fastd

Diese Ansible role konfiguriert Netzwerk Interfaces für die definierten fastd Instanzen.

Es wird zwischen node- und intragate-Instanzen unterschieden.

Interface-Benamung

Node-Interfaces: $mesh.id + VPN + '-' + $mesh.fastd.nodes.instances.xx.mtu, z.B. "mzVPN-1312" Intragate-Interfaces: $mesh.id + 'ig' + VPN + '-' + $mesh.fastd.intragate.instances.xx.mtu, z.B. "mzigVPN-1312"

Benötigte Variablen

  • Dictionary meshes ´´´ meshes:
    • id: xx ... ipv4_network: ...

´´´

  • Host Variable magic

MAC-Adressen

Die MAC-Adressen der Interfaces werden aus dem IPv4-Subnetz sowie der magic-Nummer des Hosts berechnet.

xxVPN-$mtu prefix: 02:2x # x = ID der fastd-Instanz xxigVPN-$mtu prefix: 02:3x # x = ID der fastd-Instanz