hio
first you run the netstat command to look for listning ports
"netstat -ant"
"netstat -plut"
(also u can look for open connections use "socklist")
now u can close all unused ports in /etc/inetd.conf
(check inetd with this "grep -v ^# /etc/inetd.conf")
for all other things u can stop unused services with
chkconfig or normally the better way is u uninstal it
when u want to make secure ure computer install iptables
a statefull inspection firewall at
http://www.netfilter.org/
also look at
www.chkrootkit.org for local sec
if u dont know which port is for which services check /etc/services
or look at
www.snort.org at there portdatabase
i it helps greets
(sry for my english)