I am building a new install, and trying to be sure that I will not have any ports open that I shouldn't. This linode will be a web server w/ mysql, no access to the mysql from anything other than localhost, no mail, etc.
nmap reveals the following:
Starting Nmap 4.11 (
http://www.insecure.org/nmap/ ) at 2007-12-03 12:23 EST
Interesting ports on localhost (127.0.0.1):
Not shown: 1672 closed ports
PORT STATE SERVICE
9/tcp open discard
13/tcp open daytime
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
37/tcp open time
80/tcp open http
3306/tcp open mysql
I need http and ssh open, I am debating ftp vs sftp, but I do not need 25 for sure, not sure how to close that up. Anyone have any ideas about discard, daytime, time and whether or not I need mysql to have a port open if I will have php talking to mysql directly on the same box?
Thanks for any insight,
Paul