routerbox/utils/he_ipv6/tpl/radvd.conf.j2
2020-05-15 18:01:03 -04:00

31 lines
687 B
Django/Jinja

# Generated by he_ipv6
{% for assign in assignments %}
{% for assignment in assign.iface_blocks %}
interface {{ assignment.iface }} {
AdvSendAdvert on;
# Is it 1480 or 1280? Arch wiki says 1480, but everything else (older) says 1280.
# AdvLinkMTU 1280;
AdvLinkMTU 1480;
MinRtrAdvInterval 60;
MaxRtrAdvInterval 600;
AdvDefaultLifetime 9000;
{%- for block in assignment.iface_blocks %}
prefix {{ block|string }} {
AdvOnLink on;
{%- if block.prefixlen == 64 %}
AdvAutonomous on;
{%- endif %}
AdvRouterAddr off;
};
{%- endfor %}
{%- if ra.dns is true %}
RDNSS {{ nameservers[assignment.iface]|join(' ') }} {
};
{%- endif %}
};
{%- endfor %}
{%- endfor %}