[keepalived] Add fe80::1 as link local addresses

certbot_on_virtu
_shirenn 2022-01-30 16:31:03 +01:00
parent b3a8de54e4
commit cfd6f682ff
5 changed files with 18 additions and 6 deletions

View File

@ -2,7 +2,7 @@
glob_keepalived:
mail_source: keepalived@crans.org
mail_destination: root@crans.org
smtp_server: smtp.adm.crans.org
smtp_server: "{{ query('ldap', 'ip', 'redisdead', 'adm') | ipv4 | first }}"
routeur_id: "{{ ansible_hostname }}"
pool:
VI_ALL:
@ -15,16 +15,23 @@ glob_keepalived:
ipv4: 138.195.159.250/30
- vlan: aurore
ipv4: 185.230.79.253/29
ipv6: 2a0c:700:28::1/64
ipv6:
- {ip: '2a0c:700:28::1/64', scope: 'global'}
- vlan: srv
ipv4: 185.230.79.62/26
ipv6: 2a0c:700:2::ff:fe00:9902/64
ipv6:
- {ip: '2a0c:700:2::ff:fe00:9902/64', scope: 'global'}
- {ip: 'fe80::1/64', scope: 'link'}
- vlan: srv_nat
ipv4: 172.16.3.99/24
ipv6: 2a0c:700:3::ff:fe00:9903/64
ipv6:
- {ip: '2a0c:700:3::ff:fe00:9903/64', scope: 'global'}
- {ip: 'fe80::1/64', scope: 'link'}
- vlan: adh
ipv4: 185.230.78.99/24
ipv6: 2a0c:700:12::ff:fe00:9912/48
ipv6:
- {ip: '2a0c:700:12::ff:fe00:9912/48', scope: 'global'}
- {ip: 'fe80::1/64', scope: 'link'}
- vlan: ens
ipv4: 100.84.0.99/16
ipv6: 2a0c:700:54::ff:fe00:9954/48

View File

@ -16,3 +16,4 @@ loc_service_keepalived:
- radvd
- bird
- bird6
- router.target

View File

@ -16,3 +16,4 @@ loc_service_keepalived:
- radvd
- bird
- bird6
- router.target

View File

@ -16,3 +16,4 @@ loc_service_keepalived:
- radvd
- bird
- bird6
- router.target

View File

@ -45,7 +45,9 @@ vrrp_instance {{ instance.name }}6 {
virtual_ipaddress {
{% for zone in keepalived.pool[instance.name].zones %}
{% if zone.ipv6 is defined %}
{{ zone.ipv6 }} dev {{ interfaces[zone.vlan] }} scope global
{% for ip in zone.ipv6 %}
{{ ip.ip }} dev {{ interfaces[zone.vlan] }} scope {{ ip.scope }}
{% endfor %}
{% endif %}
{% endfor %}
}