Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do i list all the filtered ports using nmap? i have used the command sudo nmap -sS -v how can we print the list of the ports should i use -sU ,-sX or any other parameter

share|improve this question

migrated from stackoverflow.com Dec 15 '12 at 11:25

This question came from our site for professional and enthusiast programmers.

1 Answer 1

[root@mg0008 ~]# nmap server1 -p 8081-8088 | grep filtered
8081/tcp filtered blackice-icecap
8083/tcp filtered unknown
8085/tcp filtered unknown
8086/tcp filtered unknown
8087/tcp filtered unknown
8088/tcp filtered unknown

Only Port number

[root@us-wal-mg0008 ~]# nmap svp1ws3 -p 8081-8088 | grep filtered | grep -e ^[0-9] | awk '{print $1}'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.