94da which ports do i open for nfs? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Firewalls

Firewalls IPFW, PF, IPF (but not limited) related discussion

Reply
 
Thread Tools Display Modes
  #1  
Old June 30th, 2009, 13:24
wonslung wonslung is offline
Member
 
Join Date: May 2009
Posts: 826
Thanks: 32
Thanked 15 Times in 14 Posts
Default which ports do i open for nfs?

I did a search before i posted this and i can't seem to find a definitive answer.

I'm using pf as my firewall, this is a single interface machine without nat. I just need to open the correct nfs listening ports.

here is my pf.conf SO FAR for this machine.
i have a second loopback device called lo1 to allow some stuff to communicate between jails (mysql, apache)

Code:
#defined services
tcp_services = "{ssh, smtp, domain, ftp, www, pop3, auth, https, pop3s, 137, 138, 139, 51500, 10000 }"
udp_services = "{ domain, ftp, ntp, 137, 138, 139, 1900 }"

#interface for all ip's on em0
int="re0"

#log interface

set loginterface $int

#default block rule
block all

#allow traffic to/from localhost
pass in quick on lo0 all
pass in quick on lo1 all
pass out quick on lo0 all
pass out quick on lo1 all

#default pass in for our defined services

pass in on $int proto tcp from any to any port $tcp_services keep state
pass in on $int proto udp from any to any port $udp_services keep state


#pass in for all torrentflux-b4rt services
pass in quick on $int proto tcp from any to any port 49160:49300 keep state

# allow everything else out
pass out on $int proto tcp from any to any keep state
pass out on $int proto udp from any to any keep state
Reply With Quote
  #2  
Old June 30th, 2009, 13:34
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,817
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

Usually 111 (tcp/udp) and 2049 (tcp/udp).

A somewhat more complete list would be:

Code:
sunrpc		111/tcp	   rpcbind	#SUN Remote Procedure Call
sunrpc		111/udp	   rpcbind	#SUN Remote Procedure Call
nfsd-status	1110/tcp   #Cluster status info
nfsd-keepalive	1110/udp   #Client status info
nfsd		2049/tcp   nfs		# NFS server daemon
nfsd		2049/udp   nfs		# NFS server daemon
lockd		4045/udp   # NFS lock daemon/manager
lockd		4045/tcp
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---

Last edited by DutchDaemon; June 30th, 2009 at 13:40.
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Konsole does not stay open zeta_immersion KDE 25 September 27th, 2009 00:20
gnome does not open (PCBSD) lio_013 GNOME 8 May 20th, 2009 03:41
Open-Xchange on FreeBSD rodrigo Porting New Software 0 April 6th, 2009 10:36
Any point in using O_FSYNC on open()? jostrowski FreeBSD Development 6 January 27th, 2009 14:52
open office roelof Installation and Maintenance of FreeBSD Ports or Packages 10 January 4th, 2009 18:27


All times are GMT +1. The time now is 23:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0