94da
![]() |
|
|
|
|
|||||||
| Firewalls IPFW, PF, IPF (but not limited) related discussion |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |