Re: nfs and iptables
On 18/05/2008, Daniel Dalton <daniel.dalton@iinet.net.au> wrote:
> Hi,
>
> How can I allow nfs through my iptables firewall?
> What ports does it use?
> Are they static ports? And if not how can I make them static?
>
> Thanks for any help.
>
> Cheers,
>
> --
> Daniel Dalton
Hey,
`rpcinfo -p` will give you a list of ports in use for rpc.
nfsd defaults to 2049 (overridable with `-p <port>`),
portmapper to 111 (static),
mountd and statd to portmap assigned ports (overridable with `-p
<port>` and `-o <port>`).
As services the ports can be set at /etc/default/nfs-kernel-server
and /etc/default/nfs-common.
cheers,
Owen.
Reply to: