All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS
@ 2002-11-20 13:08 ligp
  0 siblings, 0 replies; 18+ messages in thread
From: ligp @ 2002-11-20 13:08 UTC (permalink / raw)
  To: nfs

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

hi,
My NFS (Kernel 2.4.18) do not work.
error information: RPC failure; Port mapping failure, NFS can't receive.

thanks!

[-- Attachment #2: Type: text/html, Size: 564 bytes --]

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

* nfs
@ 2003-08-05  6:36 Rob Verduijn
  2003-08-05  8:17 ` nfs Sven Riedel
  2003-08-07  0:58 ` nfs Ulises Hernandez Pino
  0 siblings, 2 replies; 18+ messages in thread
From: Rob Verduijn @ 2003-08-05  6:36 UTC (permalink / raw)
  To: netfilter

Hi there,

What would be the rule setting I need to mount a remote nfs share when I
am using connection tracking and a default DROP policy?

Thanx
Rob



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

* Re: nfs
  2003-08-05  6:36 nfs Rob Verduijn
@ 2003-08-05  8:17 ` Sven Riedel
  2003-08-05  9:02   ` nfs Rob Verduijn
  2003-08-07  0:58 ` nfs Ulises Hernandez Pino
  1 sibling, 1 reply; 18+ messages in thread
From: Sven Riedel @ 2003-08-05  8:17 UTC (permalink / raw)
  To: Rob Verduijn; +Cc: netfilter

On Tue, Aug 05, 2003 at 08:36:59AM +0200, Rob Verduijn wrote:
> What would be the rule setting I need to mount a remote nfs share when I
> am using connection tracking and a default DROP policy?

First, since NFS uses RPCs you need to know what ports rpc.mountd,
rpc.statd and maybe rpc.lockd are running on. If you have influence over
the server, try setting the ports explictly (invoke the daemons with the
-p flag. Works with statd and mountd, lockd is a bit more tricky). 

Otherwise the ports are
allocated dynamically and the client has to ask the remote portmapper
where the daemons are listening. Any rules in this case are only valid
as long as the rpc-services on the nfs-server aren't restarted.

You'll have to allow the following ports:
udp/2049: nfs 
tcp/2049: nfs, if you're using nfs over tcp, nfs v3 and up
udp/111: portmap/sunrpc
tcp/111: portmap/sunrpc
udp/<rpc.statd>
tcp/<rpc.statd>
udp/<rpc.mountd>
tcp/<rpc.mountd>
and maybe:
udp/<rpc.lockd>
tcp/<rpc.lockd>

Regs,
Sven


-- 
Sven Riedel                      sr@gimp.org
Liebigstr. 38 
30163 Hannover                  "Python is merely Perl for those who
                                 prefer Pascal to C" (anon)


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

* Re: nfs
  2003-08-05  8:17 ` nfs Sven Riedel
@ 2003-08-05  9:02   ` Rob Verduijn
  2003-08-05  9:49     ` nfs Chris Wilson
  0 siblings, 1 reply; 18+ messages in thread
From: Rob Verduijn @ 2003-08-05  9:02 UTC (permalink / raw)
  To: sr; +Cc: netfilter

Hi there,

I do have some influence over the nfs server, (it's my backup server) so
that wouldn't be a big problem.

My second question would be what the IP table rule settings would be on
the server :)




On Tue, 2003-08-05 at 10:17, Sven Riedel wrote:
> On Tue, Aug 05, 2003 at 08:36:59AM +0200, Rob Verduijn wrote:
> > What would be the rule setting I need to mount a remote nfs share when I
> > am using connection tracking and a default DROP policy?
> 
> First, since NFS uses RPCs you need to know what ports rpc.mountd,
> rpc.statd and maybe rpc.lockd are running on. If you have influence over
> the server, try setting the ports explictly (invoke the daemons with the
> -p flag. Works with statd and mountd, lockd is a bit more tricky). 
> 
> Otherwise the ports are
> allocated dynamically and the client has to ask the remote portmapper
> where the daemons are listening. Any rules in this case are only valid
> as long as the rpc-services on the nfs-server aren't restarted.
> 
> You'll have to allow the following ports:
> udp/2049: nfs 
> tcp/2049: nfs, if you're using nfs over tcp, nfs v3 and up
> udp/111: portmap/sunrpc
> tcp/111: portmap/sunrpc
> udp/<rpc.statd>
> tcp/<rpc.statd>
> udp/<rpc.mountd>
> tcp/<rpc.mountd>
> and maybe:
> udp/<rpc.lockd>
> tcp/<rpc.lockd>
> 
> Regs,
> Sven
> 



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

* Re: nfs
  2003-08-05  9:02   ` nfs Rob Verduijn
@ 2003-08-05  9:49     ` Chris Wilson
  0 siblings, 0 replies; 18+ messages in thread
From: Chris Wilson @ 2003-08-05  9:49 UTC (permalink / raw)
  To: Rob Verduijn; +Cc: sr, netfilter

Hi Rob,

> My second question would be what the IP table rule settings would be on
> the server :)

> > udp/2049: nfs
> > tcp/2049: nfs, if you're using nfs over tcp, nfs v3 and up
> > udp/111: portmap/sunrpc
> > tcp/111: portmap/sunrpc
> > udp/<rpc.statd>
> > tcp/<rpc.statd>

  iptables -A FORWARD -s <source> -d <dest> -p udp --dport 2049 -j ACCEPT
  iptables -A FORWARD -s <source> -d <dest> -p tcp --dport 2049 -j ACCEPT
  iptables -A FORWARD -s <source> -d <dest> -p udp --dport 111  -j ACCEPT

Et cetera, for each connection which needs to be allowed, from the list 
which Sven gave you.

> > First, since NFS uses RPCs you need to know what ports rpc.mountd,
> > rpc.statd and maybe rpc.lockd are running on. If you have influence over
> > the server, try setting the ports explictly (invoke the daemons with the
> > -p flag. Works with statd and mountd, lockd is a bit more tricky). 

You can disable locking on the client by mounting with the "-o nolock" 
flag, which removes the need to fix a port for lockd or allow connections 
to it.

Cheers, Chris.
-- 
   ___ __     _
 / __// / ,__(_)_  | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |




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

* Re: nfs
  2003-08-05  6:36 nfs Rob Verduijn
  2003-08-05  8:17 ` nfs Sven Riedel
@ 2003-08-07  0:58 ` Ulises Hernandez Pino
  1 sibling, 0 replies; 18+ messages in thread
From: Ulises Hernandez Pino @ 2003-08-07  0:58 UTC (permalink / raw)
  To: Rob Verduijn; +Cc: netfilter


On Tue, 2003-08-05 at 01:36, Rob Verduijn wrote:
> Hi there,
> 
> What would be the rule setting I need to mount a remote nfs share when I
> am using connection tracking and a default DROP policy?
> 

Hi Rob... I had the same problem, and I found a very good explication in
this link: http://www.lowth.com/LinWiz/nfs_help.html


Ulises Hernandez Pino
Red de Datos - Universidad del Cauca




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

* nfs
@ 2003-08-23 17:35 will supat
  0 siblings, 0 replies; 18+ messages in thread
From: will supat @ 2003-08-23 17:35 UTC (permalink / raw)
  To: nfs

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

I set up nfs on redhat linux 9. I created dir and mount locally, It's work.
But when I try to mount remotely from another redhat linux 9, I got error
message RPC: connection refuse. I can ping both ways. I also replace host
name with the IP address to eliminate DNS problem. But I still get the same
error message. Nfsd, mountd and portmapper are running.

Please suggest what else I need to do to resolve this error message.

 

Thank you


[-- Attachment #2: Type: text/html, Size: 2050 bytes --]

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

* nfs
@ 2003-11-15 21:23 Redeeman
  2003-11-15 21:48 ` nfs Hendrik Visage
  0 siblings, 1 reply; 18+ messages in thread
From: Redeeman @ 2003-11-15 21:23 UTC (permalink / raw)
  To: Reiserfs Mailinglist

i have read that nfs dont work with reiserfs, but even though that, i
made an export, and it works just perfect, is it dangoures somehow?
-- 
Regards, Redeeman
()  ascii ribbon campaign - against html e-mail 
/\                        - against microsoft attachments



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

* Re: nfs
  2003-11-15 21:23 nfs Redeeman
@ 2003-11-15 21:48 ` Hendrik Visage
  2003-11-17 14:38   ` nfs Dan Oglesby
  0 siblings, 1 reply; 18+ messages in thread
From: Hendrik Visage @ 2003-11-15 21:48 UTC (permalink / raw)
  To: Redeeman; +Cc: Reiserfs Mailinglist

On Sat, Nov 15, 2003 at 10:23:08PM +0100, Redeeman wrote:
> i have read that nfs dont work with reiserfs, but even though that, i
> made an export, and it works just perfect, is it dangoures somehow?

Several moons ago, there were problems with reiserfs and NFS, as
reiserfs didn't (still don't?) have the notion of inodes, which is
used in NFS for filehandle information. there were a quick work around
which didn't work that well, but the current 2.4.x kernels and Reiserfs 3.6
works sofar without troubles.


Hendrik

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

* Re: nfs
  2003-11-17 14:38   ` nfs Dan Oglesby
@ 2003-11-17  4:08     ` Hans Reiser
  2003-11-17 16:38       ` nfs Eric Whiting
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Reiser @ 2003-11-17  4:08 UTC (permalink / raw)
  To: Dan Oglesby; +Cc: Reiserfs Mailinglist

Dan Oglesby wrote:

> Hendrik Visage wrote:
>
>> On Sat, Nov 15, 2003 at 10:23:08PM +0100, Redeeman wrote:
>>
>>> i have read that nfs dont work with reiserfs, but even though that, i
>>> made an export, and it works just perfect, is it dangoures somehow?
>>
>>
>>
>> Several moons ago, there were problems with reiserfs and NFS, as
>> reiserfs didn't (still don't?) have the notion of inodes, which is
>> used in NFS for filehandle information. there were a quick work around
>> which didn't work that well, but the current 2.4.x kernels and 
>> Reiserfs 3.6
>> works sofar without troubles.
>>
>>
>> Hendrik
>>
>
> I export several ReiserFS filesystems via NFS, and have had no issues 
> accessing or manipulating data via NFS.  This is with kernel 2.4.21 
> and ReiserFS 3.6.
>
> --Dan
>
>
>
The described problems were more like years ago than moons ago, however, 
there were some kernels a few moons ago that had NFS problems not due to 
reiserfs code just to keep things in a nice state of chaos for the 
users.....

-- 
Hans



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

* Re: nfs
  2003-11-15 21:48 ` nfs Hendrik Visage
@ 2003-11-17 14:38   ` Dan Oglesby
  2003-11-17  4:08     ` nfs Hans Reiser
  0 siblings, 1 reply; 18+ messages in thread
From: Dan Oglesby @ 2003-11-17 14:38 UTC (permalink / raw)
  To: Reiserfs Mailinglist

Hendrik Visage wrote:
> On Sat, Nov 15, 2003 at 10:23:08PM +0100, Redeeman wrote:
> 
>>i have read that nfs dont work with reiserfs, but even though that, i
>>made an export, and it works just perfect, is it dangoures somehow?
> 
> 
> Several moons ago, there were problems with reiserfs and NFS, as
> reiserfs didn't (still don't?) have the notion of inodes, which is
> used in NFS for filehandle information. there were a quick work around
> which didn't work that well, but the current 2.4.x kernels and Reiserfs 3.6
> works sofar without troubles.
> 
> 
> Hendrik
> 

I export several ReiserFS filesystems via NFS, and have had no issues 
accessing or manipulating data via NFS.  This is with kernel 2.4.21 and 
ReiserFS 3.6.

--Dan


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

* Re: nfs
  2003-11-17  4:08     ` nfs Hans Reiser
@ 2003-11-17 16:38       ` Eric Whiting
  2003-11-17 17:16         ` nfs Redeeman
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Whiting @ 2003-11-17 16:38 UTC (permalink / raw)
  To: Hans Reiser; +Cc: Reiserfs Mailinglist

2.4 kernels with reiserfs 3.5 will still have NFS troubles. Just make sure you
do not have this combination.  

eric


Hans Reiser wrote:
> >>
> >> Several moons ago, there were problems with reiserfs and NFS, as
> >> reiserfs didn't (still don't?) have the notion of inodes, which is
> >> used in NFS for filehandle information. there were a quick work around
> >> which didn't work that well, but the current 2.4.x kernels and
> >> Reiserfs 3.6
> >> works sofar without troubles.
> >
> >
> The described problems were more like years ago than moons ago, however,
> there were some kernels a few moons ago that had NFS problems not due to
> reiserfs code just to keep things in a nice state of chaos for the
> users.....
> 
> --
> Hans

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

* Re: nfs
  2003-11-17 16:38       ` nfs Eric Whiting
@ 2003-11-17 17:16         ` Redeeman
  0 siblings, 0 replies; 18+ messages in thread
From: Redeeman @ 2003-11-17 17:16 UTC (permalink / raw)
  To: Reiserfs Mailinglist

the "oldest" kernel i am running is 2.4.22, with reiserfs 3.6, and the
newest is now 2.6test9 with reiserfs 3.6 too, and everything works like
a charm! i hope reiser4 will do so ;D

On Mon, 2003-11-17 at 17:38, Eric Whiting wrote:
> 2.4 kernels with reiserfs 3.5 will still have NFS troubles. Just make sure you
> do not have this combination.  
> 
> eric
> 
> 
> Hans Reiser wrote:
> > >>
> > >> Several moons ago, there were problems with reiserfs and NFS, as
> > >> reiserfs didn't (still don't?) have the notion of inodes, which is
> > >> used in NFS for filehandle information. there were a quick work around
> > >> which didn't work that well, but the current 2.4.x kernels and
> > >> Reiserfs 3.6
> > >> works sofar without troubles.
> > >
> > >
> > The described problems were more like years ago than moons ago, however,
> > there were some kernels a few moons ago that had NFS problems not due to
> > reiserfs code just to keep things in a nice state of chaos for the
> > users.....
> > 
> > --
> > Hans
-- 
Regards, Redeeman
()  ascii ribbon campaign - against html e-mail 
/\                        - against microsoft attachments



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

* Re: Nfs
@ 2007-08-13 14:13 Ina Flanagan
  0 siblings, 0 replies; 18+ messages in thread
From: Ina Flanagan @ 2007-08-13 14:13 UTC (permalink / raw)
  To: Nfs


[-- Attachment #1.1: Type: text/html, Size: 1211 bytes --]

[-- Attachment #1.2: lotter.png --]
[-- Type: image/png, Size: 13044 bytes --]

[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* NFS
@ 2015-06-19 19:09 Andrew Holway
  2015-06-19 19:29 ` NFS James Carter
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Holway @ 2015-06-19 19:09 UTC (permalink / raw)
  To: selinux

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

So how much of this got implemented? Whats the story with NFSv4?
https://www.nsa.gov/research/_files/selinux/papers/nfsv3.pdf

ta,

Andrew

[-- Attachment #2: Type: text/html, Size: 311 bytes --]

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

* Re: NFS
  2015-06-19 19:09 NFS Andrew Holway
@ 2015-06-19 19:29 ` James Carter
  2015-06-19 20:19   ` NFS Andrew Holway
  0 siblings, 1 reply; 18+ messages in thread
From: James Carter @ 2015-06-19 19:29 UTC (permalink / raw)
  To: selinux

On 06/19/2015 03:09 PM, Andrew Holway wrote:
> So how much of this got implemented? Whats the story with NFSv4?
> https://www.nsa.gov/research/_files/selinux/papers/nfsv3.pdf
>

The v3 work was experimental and there was no real way to upstream it in a 
compatible way.

Dave Quigley worked with the IETF on SELinux labeled NFS support for NFS 4.2 and 
it has been available since Fedora 20. This allows each file to have their own 
SELinux label on the server, but enforcement is only handled by the client.


-- 
James Carter <jwcart2@tycho.nsa.gov>
National Security Agency

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

* Re: NFS
  2015-06-19 19:29 ` NFS James Carter
@ 2015-06-19 20:19   ` Andrew Holway
  2015-06-19 20:40     ` NFS Daniel J Walsh
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Holway @ 2015-06-19 20:19 UTC (permalink / raw)
  To: James Carter; +Cc: selinux@tycho.nsa.gov

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

>
>
>> The v3 work was experimental and there was no real way to upstream it in
> a compatible way.
>
> Dave Quigley worked with the IETF on SELinux labeled NFS support for NFS
> 4.2 and it has been available since Fedora 20. This allows each file to
> have their own SELinux label on the server, but enforcement is only handled
> by the client.
>
>
Does it work? :)



>
> --
> James Carter <jwcart2@tycho.nsa.gov>
> National Security Agency
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to
> Selinux-request@tycho.nsa.gov.
>


-- 
Otter Networks UG
http://otternetworks.de
fon: +49 30 54 88 5197
Gotenstraße 17
10829 Berlin

[-- Attachment #2: Type: text/html, Size: 1354 bytes --]

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

* Re: NFS
  2015-06-19 20:19   ` NFS Andrew Holway
@ 2015-06-19 20:40     ` Daniel J Walsh
  0 siblings, 0 replies; 18+ messages in thread
From: Daniel J Walsh @ 2015-06-19 20:40 UTC (permalink / raw)
  To: Andrew Holway, James Carter; +Cc: selinux@tycho.nsa.gov

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



On 06/19/2015 04:19 PM, Andrew Holway wrote:
>
>
>     The v3 work was experimental and there was no real way to upstream
>     it in a compatible way.
>
>     Dave Quigley worked with the IETF on SELinux labeled NFS support
>     for NFS 4.2 and it has been available since Fedora 20. This allows
>     each file to have their own SELinux label on the server, but
>     enforcement is only handled by the client.
>
>
> Does it work? :)
>
Yes as long as your client and server support the protocol.  Currently I
know Fedora and RHEL7 do.
>
>
>
>     --
>     James Carter <jwcart2@tycho.nsa.gov>
>     National Security Agency
>     _______________________________________________
>     Selinux mailing list
>     Selinux@tycho.nsa.gov
>     To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
>     To get help, send an email containing "help" to
>     Selinux-request@tycho.nsa.gov.
>
>
>
> --
> Otter Networks UG
> http://otternetworks.de
> fon: +49 30 54 88 5197
> Gotenstraße 17
> 10829 Berlin
>
>
>
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.


[-- Attachment #2: Type: text/html, Size: 3092 bytes --]

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

end of thread, other threads:[~2015-06-19 20:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-19 19:09 NFS Andrew Holway
2015-06-19 19:29 ` NFS James Carter
2015-06-19 20:19   ` NFS Andrew Holway
2015-06-19 20:40     ` NFS Daniel J Walsh
  -- strict thread matches above, loose matches on Subject: below --
2007-08-13 14:13 Nfs Ina Flanagan
2003-11-15 21:23 nfs Redeeman
2003-11-15 21:48 ` nfs Hendrik Visage
2003-11-17 14:38   ` nfs Dan Oglesby
2003-11-17  4:08     ` nfs Hans Reiser
2003-11-17 16:38       ` nfs Eric Whiting
2003-11-17 17:16         ` nfs Redeeman
2003-08-23 17:35 nfs will supat
2003-08-05  6:36 nfs Rob Verduijn
2003-08-05  8:17 ` nfs Sven Riedel
2003-08-05  9:02   ` nfs Rob Verduijn
2003-08-05  9:49     ` nfs Chris Wilson
2003-08-07  0:58 ` nfs Ulises Hernandez Pino
2002-11-20 13:08 NFS ligp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.