public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* Need help debugging NFSv3+KRB5+PAT (Port Address Translation) problem
@ 2014-09-26 15:31 Joschi Brauchle
  2014-09-26 15:56 ` Jeff Layton
  0 siblings, 1 reply; 3+ messages in thread
From: Joschi Brauchle @ 2014-09-26 15:31 UTC (permalink / raw)
  To: linux-nfs@vger.kernel.org; +Cc: Fehenberger, Tobias, Stinner, Markus

[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

Hello everyone,

I need some help debugging a NFSv3 + KRB5 + PAT (Port Address 
Translation) problem.

We have two hosts behind a firewall and an NFSv3 server outside 
requiring KRB5 authentication.

1) Client_NAT is using NAT (network address translation),
2) Client_PAT is using PAT (port address translation)
to reach the NFSv3 server through the firewall.

Both clients are configured identically in terms of Kerberos and so on.

Mounting an NFSv3 share now fails on Client_PAT with the message:
RPC: server SERVERNAME requires stronger authentication.
On Client_NAT, mounting succeeds.

We strongly suspect the port address translation to be the reason for 
the failure, but would need help confirming this and advice on how to 
fix it.

Please find here the RPC debug logs from
Client_NAT: http://pastebin.com/9RANqVgY
Client_PAT: http://pastebin.com/TiscNVqW
Here is a DIFF between the two: http://pastebin.com/wCg7WyYd

I'm grateful for any help on this problem!

Best regards,
Joschi Brauchle
-- 
Dipl.-Ing. Joschi Brauchle, M.S.

Institute for Communications Engineering (LNT)
Technische Universitaet Muenchen (TUM)
80290 Munich, Germany

Tel (work): +49 89 289-23474
Fax (work): +49 89 289-23490
E-mail: joschi.brauchle@tum.de
Web: http://www.lnt.ei.tum.de/


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4917 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help debugging NFSv3+KRB5+PAT (Port Address Translation) problem
  2014-09-26 15:31 Need help debugging NFSv3+KRB5+PAT (Port Address Translation) problem Joschi Brauchle
@ 2014-09-26 15:56 ` Jeff Layton
  2014-09-26 16:24   ` Joschi Brauchle
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Layton @ 2014-09-26 15:56 UTC (permalink / raw)
  To: Joschi Brauchle
  Cc: linux-nfs@vger.kernel.org, Fehenberger, Tobias, Stinner, Markus

[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]

On Fri, 26 Sep 2014 17:31:55 +0200
Joschi Brauchle <joschi.brauchle@tum.de> wrote:

> Hello everyone,
> 
> I need some help debugging a NFSv3 + KRB5 + PAT (Port Address 
> Translation) problem.
> 
> We have two hosts behind a firewall and an NFSv3 server outside 
> requiring KRB5 authentication.
> 
> 1) Client_NAT is using NAT (network address translation),
> 2) Client_PAT is using PAT (port address translation)
> to reach the NFSv3 server through the firewall.
> 
> Both clients are configured identically in terms of Kerberos and so on.
> 
> Mounting an NFSv3 share now fails on Client_PAT with the message:
> RPC: server SERVERNAME requires stronger authentication.
> On Client_NAT, mounting succeeds.
> 
> We strongly suspect the port address translation to be the reason for 
> the failure, but would need help confirming this and advice on how to 
> fix it.
> 
> Please find here the RPC debug logs from
> Client_NAT: http://pastebin.com/9RANqVgY
> Client_PAT: http://pastebin.com/TiscNVqW
> Here is a DIFF between the two: http://pastebin.com/wCg7WyYd
> 
> I'm grateful for any help on this problem!
> 
> Best regards,
> Joschi Brauchle

I'm not terribly familiar with the PAT vs. NAT distinction, but many
NFS servers require you to use privileged ports to connect to them. Is
your PAT client having its privileged port converted to a
non-privileged one?

If so (and if the server is Linux-based) then you can try to get around
that by exporting with the "insecure" export option.

-- 
Jeff Layton <jlayton@poochiereds.net>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help debugging NFSv3+KRB5+PAT (Port Address Translation) problem
  2014-09-26 15:56 ` Jeff Layton
@ 2014-09-26 16:24   ` Joschi Brauchle
  0 siblings, 0 replies; 3+ messages in thread
From: Joschi Brauchle @ 2014-09-26 16:24 UTC (permalink / raw)
  To: Jeff Layton
  Cc: linux-nfs@vger.kernel.org, Fehenberger, Tobias, Stinner, Markus

[-- Attachment #1: Type: text/plain, Size: 1933 bytes --]

On 09/26/2014 05:56 PM, Jeff Layton wrote:
> On Fri, 26 Sep 2014 17:31:55 +0200
> Joschi Brauchle <joschi.brauchle@tum.de> wrote:
>
>> Hello everyone,
>>
>> I need some help debugging a NFSv3 + KRB5 + PAT (Port Address
>> Translation) problem.
>>
>> We have two hosts behind a firewall and an NFSv3 server outside
>> requiring KRB5 authentication.
>>
>> 1) Client_NAT is using NAT (network address translation),
>> 2) Client_PAT is using PAT (port address translation)
>> to reach the NFSv3 server through the firewall.
>>
>> Both clients are configured identically in terms of Kerberos and so on.
>>
>> Mounting an NFSv3 share now fails on Client_PAT with the message:
>> RPC: server SERVERNAME requires stronger authentication.
>> On Client_NAT, mounting succeeds.
>>
>> We strongly suspect the port address translation to be the reason for
>> the failure, but would need help confirming this and advice on how to
>> fix it.
>>
>> Please find here the RPC debug logs from
>> Client_NAT: http://pastebin.com/9RANqVgY
>> Client_PAT: http://pastebin.com/TiscNVqW
>> Here is a DIFF between the two: http://pastebin.com/wCg7WyYd
>>
>> I'm grateful for any help on this problem!
>>
>> Best regards,
>> Joschi Brauchle
>
> I'm not terribly familiar with the PAT vs. NAT distinction, but many
> NFS servers require you to use privileged ports to connect to them. Is
> your PAT client having its privileged port converted to a
> non-privileged one?
>
> If so (and if the server is Linux-based) then you can try to get around
> that by exporting with the "insecure" export option.

We do not have control over the NFS server, but from the firewall logs I 
can see that the PAT client trying to access the server with an 
originally privileged port (<1024) gets translated to a non-privileged 
one. Shortly after that, the mount fails.

So I guess this is the problem! Thanks for the hint.


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4917 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-26 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-26 15:31 Need help debugging NFSv3+KRB5+PAT (Port Address Translation) problem Joschi Brauchle
2014-09-26 15:56 ` Jeff Layton
2014-09-26 16:24   ` Joschi Brauchle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox