How to use restrict in ntp.conf

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.