changed config to cidr format
This commit is contained in:
parent
52a0937a9d
commit
fa7f5a7b4e
2 changed files with 4 additions and 8 deletions
|
@ -1,6 +1,3 @@
|
|||
---
|
||||
prefix4: 10.112.0.0
|
||||
netmask4: 255.255.192.0
|
||||
|
||||
prefix6: 2a03:2267:0000:0000:0000:0000:0000:0000
|
||||
netmask6: ffff:ffff:ffff:ffff:0000:0000:0000:0000
|
||||
prefix4: 10.112.0.0/18
|
||||
prefix6: 2a03:2267::/64
|
||||
|
|
|
@ -31,7 +31,6 @@ restrict -6 ::1
|
|||
# Disable the monlist request as this is associated with ntp
|
||||
# amplification attacks
|
||||
disable monitor
|
||||
|
||||
restrict {{ prefix4 }} mask {{ netmask4 }} nomodify notrap nopeer
|
||||
restrict {{ prefix6 }} mask {{ netmask6 }} nomodify notrap nopeer
|
||||
restrict {{ prefix4.split("/")[0] }} mask {{ prefix4 | ipaddr('netmask') }} nomodify notrap nopeer
|
||||
restrict {{ prefix6.split("/")[0] }} mask {{ prefix6 | ipaddr('netmask') }} nomodify notrap nopeer
|
||||
|
||||
|
|
Loading…
Reference in a new issue