2020-08-01 12:56:23 +02:00
|
|
|
# -*- mode: conf-unix; coding: utf-8 -*-
|
|
|
|
|
|
|
|
##
|
|
|
|
# Bornes Wi-Fi
|
|
|
|
##
|
|
|
|
|
2020-08-01 14:20:08 +02:00
|
|
|
# Not deployed yet!
|
|
|
|
# Need to add an interface for this VLAN on "routeur-*" hosts.
|
|
|
|
|
|
|
|
# interface ens19 { # XXX - FIX THE INTERFACE NAME
|
|
|
|
# AdvSendAdvert on;
|
|
|
|
# AdvLinkMTU {{ mtu }};
|
|
|
|
# AdvDefaultPreference high;
|
|
|
|
# MaxRtrAdvInterval 30;
|
2020-08-01 16:05:41 +02:00
|
|
|
#
|
|
|
|
# AdvRASrcAddress {
|
|
|
|
# {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::0:250; # Unifi controller
|
|
|
|
# };
|
|
|
|
#
|
2020-08-01 14:31:49 +02:00
|
|
|
# prefix {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::/64 {
|
2020-08-01 14:20:08 +02:00
|
|
|
# AdvRouterAddr on;
|
|
|
|
# };
|
|
|
|
#
|
|
|
|
# # La zone DNS
|
|
|
|
# DNSSL borne.auro.re {};
|
|
|
|
#
|
|
|
|
# # Les DNS récursifs
|
2020-08-01 14:31:49 +02:00
|
|
|
# RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::{{ dns_host_suffix_main }} {};
|
|
|
|
# RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::{{ dns_host_suffix_backup }} {};
|
2020-08-01 14:20:08 +02:00
|
|
|
# };
|
2020-08-01 12:56:23 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Utilisateurs filaire
|
|
|
|
##
|
2020-08-01 14:20:08 +02:00
|
|
|
interface ens20 {
|
2020-08-01 12:56:23 +02:00
|
|
|
AdvSendAdvert on;
|
|
|
|
AdvLinkMTU {{ mtu }};
|
|
|
|
AdvDefaultPreference high;
|
|
|
|
MaxRtrAdvInterval 30;
|
|
|
|
|
2020-08-01 16:05:41 +02:00
|
|
|
AdvRASrcAddress {
|
2020-08-01 17:48:39 +02:00
|
|
|
fe80::1;
|
2020-08-01 16:05:41 +02:00
|
|
|
};
|
|
|
|
|
2020-08-01 14:31:49 +02:00
|
|
|
prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::/64 {
|
2020-08-01 12:56:23 +02:00
|
|
|
AdvRouterAddr on;
|
|
|
|
};
|
|
|
|
|
|
|
|
DNSSL fil.{{ apartment_block_dhcp }}.auro.re {}; # TODO: fix this shitty workaround.
|
|
|
|
|
2020-08-01 14:31:49 +02:00
|
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::{{ dns_host_suffix_main }} {};
|
|
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::{{ dns_host_suffix_backup }} {};
|
2020-08-01 12:56:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
# Utilisateurs wifi
|
|
|
|
##
|
2020-08-01 14:20:08 +02:00
|
|
|
interface ens21 {
|
2020-08-01 12:56:23 +02:00
|
|
|
AdvSendAdvert on;
|
|
|
|
AdvLinkMTU {{ mtu }};
|
|
|
|
AdvDefaultPreference high;
|
|
|
|
MaxRtrAdvInterval 30;
|
|
|
|
|
2020-08-01 16:05:41 +02:00
|
|
|
AdvRASrcAddress {
|
2020-08-01 17:48:39 +02:00
|
|
|
fe80::1;
|
2020-08-01 16:05:41 +02:00
|
|
|
};
|
|
|
|
|
2020-08-01 14:31:49 +02:00
|
|
|
prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::/64 {
|
2020-08-01 12:56:23 +02:00
|
|
|
AdvRouterAddr on;
|
|
|
|
};
|
|
|
|
|
|
|
|
DNSSL wifi.{{ apartment_block_dhcp }}.auro.re {}; # TODO: fix this shitty workaround.
|
|
|
|
|
2020-08-01 14:31:49 +02:00
|
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::{{ dns_host_suffix_main }} {};
|
|
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::{{ dns_host_suffix_backup }} {};
|
2020-08-01 12:56:23 +02:00
|
|
|
};
|
|
|
|
|
2020-08-01 14:20:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
# For public IPs: will use DHCPv6, deployed on routeur-aurore alone.
|