Professional Documents
Culture Documents
1. Configure IPtables to allow connections to the Oracle Cloud Infrastructure NTP server, using the
following commands:
4. Configure the instance to use the Oracle Cloud Infrastructure NTP server for iburst. To configure,
modify the /etc/ntp.conf file as follows:
a. In the server section, comment out the lines specifying the RHEL servers:
b. #server 0.rhel.pool.ntp.org iburst
5. Set the NTP service to launch automatically when the instance boots with the following
command:
7. Confirm that the NTP service is configured correctly with the following command:
ntpq -p
sudo su -
3. Change the firewall rules to allow inbound and outbound traffic with the Oracle Cloud
Infrastructure NTP server, at 169.254.169.254, on UDP port 123 with the following command:
awk -v n=13 -v s=' <passthrough ipv="ipv4">-A OUTPUT -d
169.254.169.254/32 -p udp -m udp --dport 123 -m comment --comment
"Allow access to OCI local NTP service" -j ACCEPT </passthrough>' 'NR
== n {print s} {print}' /etc/firewalld/direct.xml > tmp && mv tmp
/etc/firewalld/direct.xml
At the prompt:
enter y
ntpdate 169.254.169.254
6. Configure the instance to use the Oracle Cloud Infrastructure NTP server for iburst. To configure,
modify the /etc/ntp.conf file as follows:
a. In the server section comment out the lines specifying the RHEL servers:
b. #server 0.rhel.pool.ntp.org iburst
7. Start and enable the NTP service with the following commands:
8. systemctl start ntpd
systemctl enable ntpd
You also need disable the chrony NTP client to ensure that the NTP service starts automatically
after a reboot, using the following commands:
8. Confirm that the NTP service is configured correctly with the following command:
ntpq -p