summaryrefslogtreecommitdiff
path: root/data/templates/proxy-ndp/ndppd.conf.tmpl
blob: 9bf120b3ada9514a042243b43b9b217eb418a17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
########################################################
#
# autogenerated by nat66.py
#
#   The configuration file must define one upstream
#   interface.
#
#   For some services, such as nat66, because it runs
#    stateless, it needs to rely on NDP Proxy to respond 
#   to NDP requests.
#
#   When using nat66 source rules, NDP Proxy needs 
#   to be enabled
#
########################################################


{% for i in interface %}

{%- if not interface[i].disable %}

proxy {{ i }} {
    router {{  interface[i].router }}
    timeout {{ interface[i].timeout }}
    ttl {{ interface[i].ttl }} 
{% for p in interface[i].prefix %}
    rule {{ p }} {
{% if interface[i].prefix[p].mode == 'auto' %}
        auto
{% elif interface[i].prefix[p].mode == 'static' %}
        static
{% elif interface[i].prefix[p].mode == 'iface' and interface[i].prefix[p].iface %}
        iface {{ interface[i].prefix[p].iface }}
{% endif %}
    }
{%- endfor %} 
}

{%- endif %}

{% endfor %}