[ntp] allow multiple whitelists
parent
59234d6de8
commit
23768ec2bc
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
glob_ntp_server:
|
glob_ntp_server:
|
||||||
adm_network: '172.16.10.0'
|
open:
|
||||||
adm_mask: '255.255.255.0'
|
- 172.16.10.0/24
|
||||||
|
|
|
@ -5,7 +5,9 @@ interfaces:
|
||||||
infra: eth0.111
|
infra: eth0.111
|
||||||
|
|
||||||
loc_ntp_server:
|
loc_ntp_server:
|
||||||
adm_network: '172.17.10.0'
|
open:
|
||||||
|
- 172.17.10.0/24
|
||||||
|
- 172.16.32.0/22
|
||||||
|
|
||||||
loc_vsftpd:
|
loc_vsftpd:
|
||||||
root: /pool/mirror/pub
|
root: /pool/mirror/pub
|
||||||
|
|
|
@ -44,7 +44,9 @@ restrict ::1
|
||||||
restrict source notrap nomodify noquery
|
restrict source notrap nomodify noquery
|
||||||
|
|
||||||
# Server on adm can sync
|
# Server on adm can sync
|
||||||
restrict {{ ntp_server.adm_network }} mask {{ ntp_server.adm_mask }} notrap nomodify
|
{% for cidr in ntp_server.open %}
|
||||||
|
restrict {{ cidr | ipaddr('network') }} mask {{ cidr | ipaddr('netmask') }} notrap nomodify
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
# Clients from this (example!) subnet have unlimited access, but only if
|
# Clients from this (example!) subnet have unlimited access, but only if
|
||||||
# cryptographically authenticated.
|
# cryptographically authenticated.
|
||||||
|
|
Loading…
Reference in New Issue