This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:debug_connections [2022/09/26 13:42] manu |
linux:debug_connections [2023/02/25 18:18] (current) manu |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Test connection IP on specific port ====== | ====== Test connection IP on specific port ====== | ||
+ | |||
+ | Find all IPs available in a range: | ||
+ | <cli prompt='#'> | ||
+ | [root@lnx01 ~]# nmap -sn 192.168.0.0/24 | ||
+ | </cli> | ||
+ | |||
+ | Scan on specific ports: | ||
+ | # nmap -sV -p 22,443 192.168.0.0/24 | ||
+ | |||
+ | Which port is open | ||
+ | <cli prompt='#'> | ||
+ | manu-opensuse:/ # nmap -sT -p- 192.168.x.xxx | ||
+ | Starting Nmap 7.92 ( https://nmap.org ) at 2023-02-25 18:16 CET | ||
+ | Nmap scan report for 192.168.x.xxx | ||
+ | Host is up (0.0018s latency). | ||
+ | Not shown: 65520 closed tcp ports (conn-refused) | ||
+ | PORT STATE SERVICE | ||
+ | 53/tcp open domain | ||
+ | 80/tcp open http | ||
+ | 443/tcp open https | ||
+ | ... | ||
+ | MAC Address: 2x:xx:xx (aaaaa SAS) | ||
+ | |||
+ | Nmap done: 1 IP address (1 host up) scanned in 8.34 seconds | ||
+ | </cli> | ||
<cli prompt='#'> | <cli prompt='#'> |