holy shit, more restructuring
This commit is contained in:
2
utils/he_ipv6/tpl/dnsmasq.include.j2
Normal file
2
utils/he_ipv6/tpl/dnsmasq.include.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
# This file should be *included* in your dnsmasq configuration.
|
||||
|
||||
30
utils/he_ipv6/tpl/radvd.conf.j2
Normal file
30
utils/he_ipv6/tpl/radvd.conf.j2
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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 %}
|
||||
Reference in New Issue
Block a user