Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Any Linux Gurus On FR?
http://freerepublic.com ^ | 1/24/2016 | Self

Posted on 01/24/2016 4:32:58 PM PST by Washi

Are there any Linux gurus here?

I've looked around online and asked some questions in various forums, but I'm not getting anywhere. I've found explanations of how to set it up, but no examples. I have yet to get it working.

I am trying to configure an environment with several Red Hat Enterprise Linux 6.1 virtual machines. All of these machines need to be NTP clients of my NTP server. The NTP server uses MD5 authentication, and I need to have the Linux clients authenticate the NTP traffic.

Can someone please post a working "ntp.conf" and "keys" file so that I can see the correct way to enable authentication on my Red Hat Enterprise Linux 6.1 NTP clients?

Also, please recommend the best method to verify that authentication is being used and that only authenticated NTP messages are influencing the clients.

Thanks!


TOPICS: Computers/Internet
KEYWORDS: computers; computing; linux; md5; ntp; techhelp
Navigation: use the links below to view more comments.
first 1-2021-33 next last

1 posted on 01/24/2016 4:32:58 PM PST by Washi
[ Post Reply | Private Reply | View Replies]

To: ShadowAce

Not me but . . .


2 posted on 01/24/2016 4:42:05 PM PST by conservatism_IS_compassion ('Liberalism' is a conspiracy against the public by wire-service journalism.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Washi; rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; amigatec; Ernest_at_the_Beach; ..

I'll take a look at our setup in the morning. We always use NTP and RHEL 6 VMs.

3 posted on 01/24/2016 4:42:43 PM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Washi
Can you explain why you need to authenticate NTP?
4 posted on 01/24/2016 4:43:09 PM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Washi

and you want that for FREE????


5 posted on 01/24/2016 4:49:19 PM PST by Nifster (I see puppy dogs in the clouds)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Nifster

Absolutely.


6 posted on 01/24/2016 4:51:29 PM PST by Washi (All lives matter, or none do.)
[ Post Reply | Private Reply | To 5 | View Replies]

To: ShadowAce; Washi
OK--forget the previous question. I was being annoying again.

I do have a couple of ideas. PM me to send me you current config and I should be able to troubleshoot it for you.

7 posted on 01/24/2016 4:52:22 PM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 4 | View Replies]

To: ShadowAce
Can you explain why you need to authenticate NTP?

To prevent spoofing.

8 posted on 01/24/2016 4:53:04 PM PST by Washi (All lives matter, or none do.)
[ Post Reply | Private Reply | To 4 | View Replies]

To: Nifster
That's what open source is all about.

If you want to pay, you can do that too.

9 posted on 01/24/2016 5:00:55 PM PST by E. Pluribus Unum ("The goal of socialism is communism." -- Vladimir Lenin)
[ Post Reply | Private Reply | To 5 | View Replies]

To: ShadowAce
I do have a couple of ideas. PM me to send me you current config and I should be able to troubleshoot it for you.

Sent. Thank you.

10 posted on 01/24/2016 5:04:20 PM PST by Washi (All lives matter, or none do.)
[ Post Reply | Private Reply | To 7 | View Replies]

To: Washi

If you’re worried about spoofing, I kind of wonder if you are trying to use the wrong tool for the job. Depending on the environment, iptables (or syncing via hypervisor tools) is probably a much better tool.

But anyway, here’s a easy to follow explanation with examples:

http://www.articlesbase.com/programming-articles/how-to-configure-your-linux-ntp-server-1105782.html

As far as confirming operation, ntpq should (I think, working from memory here). If that’s not enough for you, break it intentionally and test.


11 posted on 01/24/2016 5:37:42 PM PST by Darth Reardon (During the Great Depression, World War I was referred to as the Great War)
[ Post Reply | Private Reply | To 8 | View Replies]

To: Washi

https://www.youtube.com/watch?v=bc2t6s0XeNk


12 posted on 01/24/2016 5:39:20 PM PST by Vendome (Don't take life so seriously-you won't live through it anyway - "Enjoy Yourself" ala Louis Prima)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Vendome

Ha ha ha!


13 posted on 01/24/2016 5:45:00 PM PST by Washi (All lives matter, or none do.)
[ Post Reply | Private Reply | To 12 | View Replies]

To: Washi

LOL


14 posted on 01/24/2016 5:47:52 PM PST by Vendome (Don't take life so seriously-you won't live through it anyway - "Enjoy Yourself" ala Louis Prima)
[ Post Reply | Private Reply | To 13 | View Replies]

To: Darth Reardon

Thanks, Darth. That’s one of the articles I’ve read. There must be some trick I’m missing. My clients will sync right up with the server...which normally would be a good thing. However, when I intentionally use bad keys, it also syncs right up. It doesn’t appear that the clients are actually trying to authenticate the NTP messages.


15 posted on 01/24/2016 5:55:41 PM PST by Washi (All lives matter, or none do.)
[ Post Reply | Private Reply | To 11 | View Replies]

To: Washi
One more question--

Is this a new configuration? Is the current NTP server already serving up authenticated requests? If not, are you sure that the server is configured properly?

16 posted on 01/24/2016 5:56:19 PM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 10 | View Replies]

To: ShadowAce

It’s a new configuration on the Linux VMs.

The server is already serving authenticated NTP to other clients (Cisco switches and such). I’m just not a Linux guy.


17 posted on 01/24/2016 5:59:28 PM PST by Washi (All lives matter, or none do.)
[ Post Reply | Private Reply | To 16 | View Replies]

To: Washi

Red Hat has an article for configuring NTP with symmetric key auth at https://access.redhat.com/solutions/393663

Also, the ntp_auth(5) page any be useful for you - https://www.mankier.com/5/ntp_auth


18 posted on 01/24/2016 6:13:21 PM PST by DataDink
[ Post Reply | Private Reply | To 15 | View Replies]

To: Washi

Okay, you since you said you’re not a Linux guy in another post, I have to ask:

Are your clients running ntpd or using ntpdate? If ntpd, are what are you doing to cause it to re-read ntp.conf when you make changes to ntp.conf?

Oh, and how are you editing ntp.conf? On the linux machine, or on a windows machine and transferring to Linux?


19 posted on 01/24/2016 6:26:17 PM PST by Darth Reardon (During the Great Depression, World War I was referred to as the Great War)
[ Post Reply | Private Reply | To 15 | View Replies]

To: DataDink

Thanks, I’ll get one of my buddies with a subscription to access that for me tomorrow.


20 posted on 01/24/2016 6:27:01 PM PST by Washi (All lives matter, or none do.)
[ Post Reply | Private Reply | To 18 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-33 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson