Re: IPF Rules with a NFS Cluster

This is a discussion on Re: IPF Rules with a NFS Cluster within the IPFilter forums, part of the System Security and Security Related category; David S. wrote: >>I have some experience with Solaris and VCS and Sun Cluster and NFS >>...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-26-2003
Jefferson Ogata
 
Posts: n/a
Default Re: IPF Rules with a NFS Cluster

David S. wrote:
>>I have some experience with Solaris and VCS and Sun Cluster and NFS
>>behind a firewall. It's not pretty. Your biggest problem is going to
>>be the RPC Portmapper which assigns RPC service ports. These ports can
>>and do change every time the NFS server is rebooted. Your best bet is
>>to configure your NFS server to use public ports, or wait for NFS v4
>>which was designed to be used in a firewalled environment.

>
> Another way to handle this would be to configure the system to boot up
> with a basic set of IPF rules. Then, after the NFS services have
> started, run a script (out of 'rc.local', or something) that parses
> the output of "rpcinfo -p localhost" for the port numbers used by the
> NFS RPC services, and then builds a new set or IPF rules using those
> numbers. I haven't tried that, but it shouldn't be too hard.


You can also just bypass the portmapper and mount daemon by getting ahold of
the filehandles once and writing a little C program to mount each filesystem
using the prefetched filehandle. If you change your exports, or replace an
exported directory, you'll have to get the new filehandle. NFS talks on port
2049, and lockd talks on port 4045 on Solaris; it's only the mount daemon that
moves. (The quota daemon also moves; just don't enable NFS quotas.) With this
strategy, you can just pass 2049, and 4045 if you're using NFS locking, and
you're done for good.

But I don't think this was the guy's problem, actually. I got the impression
he was having a problem with strong vs. weak end system model. See if setting
ip_strict_dst_multihoming to 1 makes a difference.

--
Jefferson Ogata <Jefferson.Ogata@noaa.gov>
NOAA Computer Incident Response Team (N-CIRT) <ncirt@noaa.gov>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0