-
Notifications
You must be signed in to change notification settings - Fork 20
Interface configuration #88
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
base: master
Are you sure you want to change the base?
Changes from all commits
5ca8d72
6445972
fbf7909
acdae10
91c7376
5c8ec06
1df76ca
b545051
0bc656a
80a7bc2
ecef543
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,3 +209,9 @@ disable_monitor | |
Adds 'disable monitor' line - disables NTP Monlist command, useful to prevent NTP reflection attack https://isc.sans.edu/forums/diary/NTP+reflection+attack/17300 | ||
|
||
- *Default*: false | ||
|
||
interface | ||
--------------- | ||
Adds 'interface' line - interface configuration, see man ntp_misc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please not that this must be an array of strings and give an example. |
||
|
||
- *Default*: 'UNSET' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
$disable_monitor = true, | ||
$sysconfig_path = 'USE_DEFAULTS', | ||
$sysconfig_options = 'USE_DEFAULTS', | ||
$interface = 'UNSET', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of UNSET we could use |
||
) { | ||
|
||
# validate type as array or fail | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ filegen clockstats file clockstats type day enable | |
# pool: <http://www.pool.ntp.org/join.html> | ||
|
||
<% @servers.each do |server| -%> | ||
server <%= server %><% if @server_options != 'UNSET' %> <%= @server_options %><% end %> | ||
server <%= server %><% if @server_options != 'UNSET' %> <% @server_options.each do |option| -%><%= option %><% end -%><% end %> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is separate from adding the interface parameter and should be in its own pull request. I noticed you are using your master branch instead of creating a topic branch. Suggest creating a topic branch so this can be separate from the interface pull request (PR). |
||
<% end -%> | ||
|
||
<% if @my_peers != ['UNSET'] -%> | ||
|
@@ -116,3 +116,8 @@ tinker panic 0 | |
# Disabling monitor - https://isc.sans.edu/diary/NTP+reflection+attack/17300 | ||
disable monitor | ||
<% end -%> | ||
|
||
<% if @interface != 'UNSET' %> | ||
# Interface configuration <% @interface.each do |value| %> | ||
interface <%= value %><% end %> | ||
<% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interfaces, plural.