Skip to content

Instantly share code, notes, and snippets.

@ikurni
Last active July 7, 2020 15:41
Show Gist options
  • Save ikurni/76d47c4475e45d3231b40e96cc960396 to your computer and use it in GitHub Desktop.
Save ikurni/76d47c4475e45d3231b40e96cc960396 to your computer and use it in GitHub Desktop.
Configure NTP server without access to internet
##Edit /etc/ntp.conf
vi /etc/ntp.conf
##Add below line to set local server as the NTP server in the server section
---
restrict 10.10.10.0 mask 255.255.255.0 nomodify notrap
server 127.127.1.0
fudge 127.127.1.0 stratum 10
---
##Restart NTP service
systemctl restart ntpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment