When you install Fedora as a Server, i know many companies that prefeer it instead of CentOS, you may want to disable several services that come for desktop usage as default enabled. First take a look at my previous post:Now you may want to run "netstat --listen" to know which servers are still running and opening ports. A "netstat -anp"
-a (shows both listening and non listening ports)
-n (shows numerical addresses and ports)
-p (shows the PID and name to which each socket belongs)
If you want to know more information about the service you will have to use a swissknife program called "lsof".
For example, i have the port 210 open and netstat -anp displays:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:210 0.0.0.0:* LISTEN 2818/sshd
"lsof -n | grep 2210 | grep TCP" displays:
sshd 2818 root 3u IPv4 7977 TCP *:210 (LISTEN) sshd 20391 root 3u IPv4 6912108 TCP 10.10.10.2:210->10.10.10.4:4518 (ESTABLISHED) sshd 20401 walter 3u IPv4 6912108 TCP 10.10.10.2:210->10.10.10.4:4518 (ESTABLISHED)
Secure your server ;-)











0 comentarios:
Post a Comment