Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Dec 15 '12 at 11:25

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

[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.