On Tue, 8 Jan 2002, Werner Puschitz wrote:
> > On Mon, 7 Jan 2002, Monte Milanuk wrote: > > > I need to know what ports to leave open so I can firewall my server, but > > still allow access for NFS mounted /home directories. > > > > I gather that I will probably have to leave open the tcp/udp ports 111 for > > sunrpc and tcp/udp 2049 for NFS, but what else? I've seen mention of > > specifying a port for mountd in /etc/services in the ~600 range and > > leaving it open too. > > > > Anyone have some specific information on this to share? > > I would just run a portscan on the NFS server and then identify all > listening ports that are related to NFS. > > nmap -sT <server> > BTW, if you want to know which process is listening on a port, you can use losof: # nmap -sT localhost [snip] 663/tcp open unknown 683/tcp open unknown 6000/tcp open X11 32770/tcp open sometimes-rpc3 # lsof -i :32770 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME rpc.mount 1150 root 4u IPv4 1796 TCP *:32770 (LISTEN) # Werner _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list