Jump to Navigation

192 - Search Open Ports for Linux Server

1. nmap Command.

# nmap
# nmap

2. nd Command.

# nc -z 1-1023

Run nc command with -z flag. You need to specify host name / ip along with the port range to limit and speedup operation.

3. Close a port

To close a port, you can use the following command as root:

# fuser -k 80/tcp

fuserĀ  -km /home - kills all processes accessing the file system /home in any way.


Main menu 2

Story | by Dr. Radut