Score:0

iptables rule to drop packets with namp closed ports

sb flag

When I run a nmap against my server, there are some ports that are closed.

50000/tcp closed ibm-db2
50001/tcp closed unknown
50002/tcp closed iiimsf
50003/tcp closed unknown
50006/tcp closed unknown

I want to add an iptables rule to drop packets when these ports are closed so that nmap scan does not expose these ports.

I want to know how I can detect these ports' status so that DROP those packets?

P.S. These ports are necessary for my system and those ports will bind to a program when necessary.

in flag
Tricking port scanners: https://wiki.archlinux.org/title/Simple_stateful_firewall#Tricking_port_scanners
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.