What services are running:
netstat -nutlp
lsof -i
What ports are listening:
nmap HOSTNAME_or_IP
Test a port:
telnet IP PORT
nc -v IP PORT
Iptables
iptables -L = display the filter table
-nL = use numeric output
-vL = use verbose output
iptables -t nat -L = display the nat table
Notes: