Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Exclusive access for few IPs to NTP device


    How to provide a client exclusive access to the NTP device or NTP server.

    Example:
    1. Configured md5 authentication for a subnet added below restriction line to the subnet as below in ntp.conf file. Also configured the keys and md5 authentication working .

    restrict 192.168.1.0 mask 255.255.255.0 nomodify noquery nopeer notrust


    Question 1: Now how to provide just plain exclusive (non md5 authentication) to some of the IPs from the subnet.

    192.168.1.10
    192.168.1.20

    Question 2: Any order to follow in ntp.conf file. Which will be precedence over the other.

    Can you please let me know.

    Appreciate your help.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    Have you tried this:

    restrict -4 192.168.1.10 mask 255.255.255.0 nomodify notrap
    restrict -4 192.168.1.20 mask 255.255.255.0 nomodify notrap

    You can also disable keyed authentication on the server with the --authnoreq option on the command line or in /etc/sysconfig/ntpd.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    -->
    Thank you so much for your reply.

    I tried as below
    restrict 192.168.1.10 mask 255.255.255.0 nomodify nopeer noquery
    restrict 192.168.1.20 mask 255.255.255.0 nomodify nopeer noquery

$spacer_open
$spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •