summaryrefslogtreecommitdiff
path: root/data/templates/proxy-ndp
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-11-30 20:03:00 +0800
committerjack9603301 <jack9603301@163.com>2021-01-23 21:45:30 +0800
commitb047855b80754d78cab4d3161ad0e97c21f479bc (patch)
treebde7384faa2f64a5fa3b6ce1e239f21bdaa424ee /data/templates/proxy-ndp
parent6baf79a72cac9e6624d56b140511c32fad2cfbaa (diff)
downloadvyos-1x-b047855b80754d78cab4d3161ad0e97c21f479bc.tar.gz
vyos-1x-b047855b80754d78cab4d3161ad0e97c21f479bc.zip
nptv6: T2518: Initial support for nat66 (NPT)
Diffstat (limited to 'data/templates/proxy-ndp')
-rw-r--r--data/templates/proxy-ndp/ndppd.conf.tmpl41
1 files changed, 41 insertions, 0 deletions
diff --git a/data/templates/proxy-ndp/ndppd.conf.tmpl b/data/templates/proxy-ndp/ndppd.conf.tmpl
new file mode 100644
index 000000000..9bf120b3a
--- /dev/null
+++ b/data/templates/proxy-ndp/ndppd.conf.tmpl
@@ -0,0 +1,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 %}