All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jose Maria Lopez <jkerouac@bgsec.com>
To: "netfilter@lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: nfs ports
Date: 28 Jan 2005 19:55:45 +0100	[thread overview]
Message-ID: <1106938544.11290.5.camel@nostromo.bgsecm.com> (raw)
In-Reply-To: <200501281250.55466.JALaramie@Loudoun-Fairfax.com>

El vie, 28 de 01 de 2005 a las 18:50, Jeffrey Laramie escribió:
> Hi All,
> 
> I've been fighting the good fight trying to maintain nfs connections though my 
> firewall but I'm not winning. Every time I think I have opened the ports I 
> need nfs (portmapper?) uses a different port. My questions:
> 
> 1.  Is there a netfilter patch for tracking nfs ports similar to the one for 
> ftp?
> 
> 2.  If not, can someone point me to a list of ports used by nfs so that I can 
> open up what I need once and for all?
> 
> Thanks
> 
> Jeff

NFS uses the ports 2049/tcp 2049/udp, but you can obtain them
from the server using rpcinfo with:

rpcinfo -p localhost|grep "nfs"|grep "tcp"|tr ' ' '\n'|grep -v
"nfs"|tail -n 2|head -n 1

rpcinfo -p localhost|grep "nfs"|grep "udp"|tr ' ' '\n'|grep -v
"nfs"|tail -n 2|head -n 1

and for the services quota, lock, stat and mount we use the same method
but changing the grep "nfs" by grep "mount", by example. Lockd only
uses udp, quota uses tcp and udp, mount uses tcp and udp and stat uses
also tcp and udp.

For portmap we use the same method but changing nfs by portmapper. It
uses tcp and udp. Normally it uses 111/tcp and 111/udp.

This is the method we use in our GPL bastion-firewall software to
find the ports.

Regards.

-- 
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"



  parent reply	other threads:[~2005-01-28 18:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-28 17:50 nfs ports Jeffrey Laramie
2005-01-28 18:49 ` Jason Opperisano
2005-01-28 19:22   ` Jeffrey Laramie
2005-01-28 18:55 ` Jose Maria Lopez [this message]
2005-01-28 19:21   ` Jeffrey Laramie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1106938544.11290.5.camel@nostromo.bgsecm.com \
    --to=jkerouac@bgsec.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.