Please let me know how I can close or block unused ports on interfaces within a network using KALI. Note that some of the workstations are running on windows. I have tried netstat command, KILL command and both of them are not giving me the desired out come.
once look at the below link it may help you
either use “iptables” command to block a specific port or
for example, if you stop “sshd” service by "/etc/init.d/sshd stop " command , port 22 will be closed