Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS and Wireless and Security

Reply
Thread Tools Display Modes

NFS and Wireless and Security

 
 
Jack Frillman
Guest
Posts: n/a

 
      09-21-2004, 11:48 PM

I want to set up a NFS on the local network I am setting up in my house.
I want to have a shared directory structure between the Linux
machine (Fedora Core 2) and my Mac PowerBook (OSX 10.3.4). Currently
they are networked over a Wireless network
using a Syslink router. It is my understand that if I set up NFS and
access it via the wireless network it will be in the clear.

Is there any way of setting up the NFS so that it will be secure similar
to when I remotely login in or transfer files with ssh?
 
Reply With Quote
 
 
 
 
James Knott
Guest
Posts: n/a

 
      09-22-2004, 01:35 AM
Jack Frillman wrote:

>
> I want to set up a NFS on the local network I am setting up in my house.
> I want to have a shared directory structure between the Linux
> machine (Fedora Core 2) and my Mac PowerBook (OSX 10.3.4). Currently
> they are networked over a Wireless network
> using a Syslink router. It is my understand that if I set up NFS and
> access it via the wireless network it will be in the clear.
>
> Is there any way of setting up the NFS so that it will be secure similar
> to when I remotely login in or transfer files with ssh?


For all wireless connections, you should at least use WEP, though a VPN
would be a huge improvement.

--

(This space intentionally left blank)
 
Reply With Quote
 
Dave Brown
Guest
Posts: n/a

 
      09-23-2004, 05:07 PM
In article <4150bde1$0$99874$(E-Mail Removed)> ,
Jack Frillman wrote:
>
> I want to set up a NFS on the local network I am setting up in my house.
> I want to have a shared directory structure between the Linux
> machine (Fedora Core 2) and my Mac PowerBook (OSX 10.3.4). Currently
> they are networked over a Wireless network
> using a Syslink router. It is my understand that if I set up NFS and
> access it via the wireless network it will be in the clear.
>
> Is there any way of setting up the NFS so that it will be secure similar
> to when I remotely login in or transfer files with ssh?


Why would it be "in the clear"? I recognize that WEP imposes a
performance hit, but is speed an issue?

But NFS needs a robust network connection. My experience with wireless
is that it's often not "robust"... a high percentage of packets need to
be resent. TCP protocol can handle this better than UDP protocol upon
which NFS is based. I've seen articles describing efforts to rewrite
applications to use a TCP-based file transfer where wireless connections
were required.

Nonetheless, I've had some luck on an 11Mbs connection, but just from one
room to the next, (in that case, using 64-bit WEP). And when I do
anything requiring speed, (like a network backup) I run a cat-5 wireon the
floor between the 2 machines.

--
Dave Brown Austin, TX
 
Reply With Quote
 
Stefan Monnier
Guest
Posts: n/a

 
      09-23-2004, 06:07 PM
>> Is there any way of setting up the NFS so that it will be secure similar
>> to when I remotely login in or transfer files with ssh?


> Why would it be "in the clear"?


NFS traditionally doesn't use any encryption, so anyone on the network can
eavesdrop. It's actually even worse than that because there's no
real authentication either, so they can easily access the files.
All in all it's pretty bad.

> I recognize that WEP imposes a performance hit, but is speed an issue?


WEP only protects in the sense that it tries to control access to your
network, but the problem is what happens to people who do have access to
your network (or who break WEP).

> But NFS needs a robust network connection. My experience with wireless
> is that it's often not "robust"... a high percentage of packets need to
> be resent. TCP protocol can handle this better than UDP protocol upon


Then use NFS over TCP, that's been available for a while now.


Stefan
 
Reply With Quote
 
Juhan Leemet
Guest
Posts: n/a

 
      09-30-2004, 11:36 PM
On Thu, 23 Sep 2004 18:07:39 +0000, Stefan Monnier wrote:
>>> Is there any way of setting up the NFS so that it will be secure similar
>>> to when I remotely login in or transfer files with ssh?

>
>> Why would it be "in the clear"?


Clarificationn or elaboration (if only to confirm my understanding). The
login ID and password are not sent "in the clear". The logon
authentication is done locally on the machine with the user. However, once
the user is logged in then his uid/gid are used "blindly" without further
verification (in normal RPC conversations, such as with basic NFS
install). If NIS is used for name lookups (including passwd file) then
anyone can request the entire password file and attack the password
fields with any number of password cracking attacks. They cannot decrypt,
since Unix passwords are encrypted one way only, but they can try any
password(s). That is why NIS+ was better (secure transmission of
authentication information), and the secure RPC was also used for NFS.

I would say there is a management issue also. Do you let crackers into
your network? Plugging their own machines into your network? Unsupervised?
I believe illegal use of computing facilities is usually a serious
offense: cause for immediate dismissal and probably legal prosecution also.

I must confess to not being up on LDAP and what it means to NFS. Later?

> NFS traditionally doesn't use any encryption, so anyone on the network can
> eavesdrop. It's actually even worse than that because there's no
> real authentication either, so they can easily access the files.
> All in all it's pretty bad.


Well, yeah, NFS is vulnerable. It used to be less vulnerable when you
could assume that all machines used on a network were properly
administered by the sysadmins. Nowadays, if anyone can plug their own
Linux machine into a network, and they have root on that machine (natch?)
then they can define users with whatever uid/gid and have those uid/gid
used across NFS mounts. The standard/dumb NFS across normal RPC allows it.

If this is a concern, one could use secure RPC for the NFS
connections. I have only heard/read about it, and have not set this
up myself. Normally, secure RPC was used with NIS+, I believe? However, it
is possible to set it up without. Dunno what relation to LDAP. That is one
of the things I would like to do: setup secure RPC for NFS, just to know
what is involved. I'm not sure how good the secure RPC support is like on
Linux? The Linux automounter used to be semi-busted (no direct maps!).
Maybe these days we should all be concerned about secure RPC for NFS?

Incindentally, this is similar to a DOS/Windows security problem I
remember (2nd hand). Apparently, if someone on a DOS (or unsecure
Windows?) connected to a share on a secure Windows NT machine, but other
people could get into the DOS/Windows machine, or he shared stuff out from
that unsecure machine, then it effectively became a backdoor to bypass
the security on the NT machine, or some such. Google if you care.

>> I recognize that WEP imposes a performance hit, but is speed an issue?

>
> WEP only protects in the sense that it tries to control access to your
> network, but the problem is what happens to people who do have access to
> your network (or who break WEP).


Yeah, and as I mentioned, esp. those people who have "root" access to
those machines on your network. Are the doors open wide? Logged at least?

>> But NFS needs a robust network connection. My experience with wireless
>> is that it's often not "robust"... a high percentage of packets need to
>> be resent. TCP protocol can handle this better than UDP protocol upon

>
> Then use NFS over TCP, that's been available for a while now.


Good warning. Thanks. I have only come in over wireless ssh sessions (from
Windows notebook), and have not yet used any shared NFS over wireless.

--
Juhan Leemet
Logicognosis, Inc.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Security toymaker Wireless Networks 2 07-25-2007 09:36 PM
Wireless Security (WEP) DP Wireless Internet 6 11-28-2005 12:15 AM
Wireless Security Anthony Farmer Wireless Internet 7 11-26-2005 10:36 PM
Wireless security C Tate Wireless Networks 5 01-10-2005 11:03 PM
Security with wireless TheStranger Wireless Internet 4 01-25-2004 09:40 AM



1 2 3 4 5 6 7 8 9 10 11