How to use restrict in ntp.conf
Issue
-
When we configure ntp.conf as following, how ntp allow connections to the host?
restrict default ignore restrict 192.168.0.1 noquery nomodify
-
Does ntp behavior depend on the order of restrict statements in ntp.conf? For example, the following 2 cases is different?
Case1: restrict default ignore restrict 192.168.0.0 mask 255.255.255.0 restrict 192.168.0.1 noquery nomodify Case2: restrict default ignore restrict 192.168.0.1 noquery nomodify restrict 192.168.0.0 mask 255.255.255.0
Environment
- Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.