O comando ss do linux pode listar as portas tcp/udp/raw
info sobre:
http://www.cyberciti.biz/tips/linux-investigate-sockets-network-connections.html