Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTP: restrict keyword doubled in template #1

Open
YAmikep opened this issue Jul 6, 2014 · 0 comments
Open

NTP: restrict keyword doubled in template #1

YAmikep opened this issue Jul 6, 2014 · 0 comments

Comments

@YAmikep
Copy link

YAmikep commented Jul 6, 2014

Hi,

I think you are aware of the NTP reflection attack since you included the restrict lines.
I used your NTP role as-is but my server has been attacked anyway.
After looking closely at the generated configuration, the restrict keyword is doubled.

The restrict keyword is used in the variable definition and in the template which leads to two restrict keyword when the template is generated. You should remove the restrict keyword in the variables.

restrict:
  - "restrict -4 default kod notrap nomodify nopeer noquery"
  - "restrict -6 default kod notrap nomodify nopeer noquery"
  - "restrict 127.0.0.1"
{% for i in restrict %}
restrict {{ i }}
{% endfor %}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant