81 lines
2.1 KiB
Django/Jinja
81 lines
2.1 KiB
Django/Jinja
# -*- mode: conf-unix; coding: utf-8 -*-
|
|
|
|
##
|
|
# Bornes Wi-Fi
|
|
##
|
|
|
|
# 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;
|
|
#
|
|
# AdvRASrcAddress {
|
|
# {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::0:250; # Unifi controller
|
|
# };
|
|
#
|
|
# prefix {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::/64 {
|
|
# AdvRouterAddr on;
|
|
# };
|
|
#
|
|
# # La zone DNS
|
|
# DNSSL borne.auro.re {};
|
|
#
|
|
# # Les DNS récursifs
|
|
# RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::{{ dns_host_suffix_main }} {};
|
|
# RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::{{ dns_host_suffix_backup }} {};
|
|
# };
|
|
|
|
##
|
|
# Utilisateurs filaire
|
|
##
|
|
interface ens20 {
|
|
AdvSendAdvert on;
|
|
AdvLinkMTU {{ mtu }};
|
|
AdvDefaultPreference high;
|
|
MaxRtrAdvInterval 30;
|
|
|
|
AdvRASrcAddress {
|
|
{{{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::0:{{ router_ip_suffix }};
|
|
};
|
|
|
|
prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::/64 {
|
|
AdvRouterAddr on;
|
|
};
|
|
|
|
DNSSL fil.{{ apartment_block_dhcp }}.auro.re {}; # TODO: fix this shitty workaround.
|
|
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::{{ dns_host_suffix_main }} {};
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::{{ dns_host_suffix_backup }} {};
|
|
};
|
|
|
|
|
|
##
|
|
# Utilisateurs wifi
|
|
##
|
|
interface ens21 {
|
|
AdvSendAdvert on;
|
|
AdvLinkMTU {{ mtu }};
|
|
AdvDefaultPreference high;
|
|
MaxRtrAdvInterval 30;
|
|
|
|
AdvRASrcAddress {
|
|
{{{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::0:{{ router_ip_suffix }};
|
|
};
|
|
|
|
prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::/64 {
|
|
AdvRouterAddr on;
|
|
};
|
|
|
|
DNSSL wifi.{{ apartment_block_dhcp }}.auro.re {}; # TODO: fix this shitty workaround.
|
|
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::{{ dns_host_suffix_main }} {};
|
|
RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::{{ dns_host_suffix_backup }} {};
|
|
};
|
|
|
|
|
|
|
|
# For public IPs: will use DHCPv6, deployed on routeur-aurore alone.
|