When below nmap port scanning is started on the DUT.
sudo nmap -v -PP de.vi.ce.ip -oN nmaplog.txt
It shows that the device is UP and running.
Output of the nmap test:
Nmap scan report for 169.27.182.54
Host is up (0.00084s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
22/tcp open ssh
5555/tcp open freeciv
MAC Address: F0
E:42:67:31
C (Unknown)
Read data files from: /usr/share/nmap
My query is, can we block the device host status using iptables netfilter rules?