ntp: add config to filter and set ntp interfaces (#11066)

* ntp: add config to set which interface ntp should listen

* Fixed config to only have one variable
This commit is contained in:
Pavan Gunda
2024-04-25 16:51:45 +02:00
committed by GitHub
parent cd7d11fea2
commit 538deff9ea
2 changed files with 14 additions and 0 deletions

View File

@@ -35,6 +35,13 @@ restrict -6 default kod notrap nomodify nopeer noquery limited
restrict {{ item }}
{% endfor %}
# Needed for filtering interfaces
{% if ntp_filter_interface %}
{% for item in ntp_interfaces %}
interface {{ item }}
{% endfor %}
{% endif %}
# Needed for adding pool entries
restrict source notrap nomodify noquery