Score:0

Which Cipher Is Being Used To Encrypt NFSv4 With "sec=krb5p"?

de flag

I am using NFSv4 with sec=krb5p encryption enabled on a CentOS 7 client & server. My NFS shares mount flawlessly at boot-time, and when I query my keytab file I am able to view the list of available ciphers, as so...

# klist -ke
Keytab name: FILE:/etc/krb5.keytab
KVNO Principal
---- ---------------------------------------------
   3 nfs/fqdn.host.name@ADS (des-cbc-crc)
   3 nfs/fqdn.host.name@ADS (des-cbc-md5)
   3 nfs/fqdn.host.name@ADS (arcfour-hmac)
   3 nfs/fqdn.host.name@ADS (aes256-cts-hmac-sha1-96)
   3 nfs/fqdn.host.name@ADS (aes128-cts-hmac-sha1-96)

This is wonderful, and I'm happy that I am able to securely employ NFSv4 with end-to-end encryption using Kerberos 5 authentication and even limit which ciphers are available, or exclude "weak ciphers" via the /etc/krb5.conf file. Now that it's "working", I'd sure like to be able to verify that my client hasn't defaulted to a weak encryption cipher like "des-cbc-crc", or better yet confirm that my client IS using "aes256-cts-hmac-sha1-96" encryption! I don't seem to be able to find this functionality in any of my Kerberos package utilities.

Is there a way to determine WHICH cipher is being used to secure an existing NFS mount?

de flag
Get the package capture of the handshake on the wire and look at it with Wireshark. You should see which cipher peers have agreed to use.
user1686 avatar
fr flag
What kernel version does CentOS 7 have? (Or more specifically, what kernel version does _your system_ have?) Note though that the Kerberos session keys may use a different enctype than the long-term keys.
Will avatar
de flag
NFS server and clients are on "kernel-3.10.0-1160.59.1.el7.x86_64". So strange that the only way to determine the enctype on a given NFS session would be to sniff network traffic... using the krb5p option is to prevent "snoopers" from "snooping" in the first place.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.