summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-10-01 10:03:12 +0000
committersever-sever <v.gletenko@vyos.io>2020-10-01 11:21:44 +0000
commitca61add5e7dea828c67ea074368196025f4cb4eb (patch)
tree80c7e43a698623ca396fcd48920d218c2cdbf859 /data
parent5b640551fdff979275b49965801ad438938fb067 (diff)
downloadvyos-1x-ca61add5e7dea828c67ea074368196025f4cb4eb.tar.gz
vyos-1x-ca61add5e7dea828c67ea074368196025f4cb4eb.zip
ntp: T2944: By default do not listen port 123 on any address
Diffstat (limited to 'data')
-rw-r--r--data/templates/ntp/ntp.conf.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/ntp/ntp.conf.tmpl b/data/templates/ntp/ntp.conf.tmpl
index df8157a41..bb0067bfb 100644
--- a/data/templates/ntp/ntp.conf.tmpl
+++ b/data/templates/ntp/ntp.conf.tmpl
@@ -36,4 +36,10 @@ interface ignore wildcard
{% for address in listen_address %}
interface listen {{ address }}
{% endfor %}
+interface listen 127.0.0.1
+interface listen ::1
+{% else %}
+interface ignore wildcard
+interface listen 127.0.0.1
+interface listen ::1
{% endif %}