Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2006 13:34:09 -0500
From:      Bill Moran <>
To:        vittorio <>
Subject:   Re: IPFW & NFS
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
In response to vittorio <>:

> I have two FreeBSD 6.1 boxes one of which (IP is an NFS server and 
> the other one (IP is, among other things, an NFS client sharing 
> directories with the NFS server.
> It all works correctly and I can mount_nfs all the directories from the 
> server.
> BUT, I'm now trying to use an IPFW firewall both on the server and on the 
> client. My simple aim is to setup connections between the server and 
> the client ** only **; no connections should be possible with other 
> clients!
> Now I've tried the poor documentation I could find googling with the 
> keywords "freebsd ipfw nfs" to no avail, I cannot mount_nfs any share on te 
> client because something goes wrong with RPC.
> Concentrating on the client side (no ipfw for the moment on teh server) I 
> tried the following

NFS is difficult to firewall, as it's not guaranteed to use the same
ports all the time.

The NFS server has options to restrict who can connect, see the man
page for exports.

Othwerwise, Chuck's advice was good.  Additionally, you can debug IPFW
using 'ipfw show', and by inserting "log" statements into your ruleset
to get more useful feedback.

Bill Moran
Collaborative Fusion Inc.

Want to link to this message? Use this URL: <>