Jump to Navigation

192 - Search Open Ports for Linux Server

1. nmap Command.

# nmap 192.168.17.1
# nmap 127.0.0.1

2. nd Command.

# nc -z 192.168.10.61 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.

Linux:


Main menu 2

Story | by Dr. Radut