Проверка портов утилитой Nmap
установка на Centos:
dnf -y install nmap
установка на Linux Mint:
sudo apt -y install nmap
пример проверки SSH порта по сети:
sudo nmap -p 22 192.168.88.219
результат:
Starting Nmap 7.80 ( https://nmap.org ) at 2023-03-20 18:19 MSK
Nmap scan report for 192.168.88.219
Host is up (0.00050s latency).
PORT STATE SERVICE
22/tcp open ssh
MAC Address: B0:6E:BF:2B:EF:60 (Asustek Computer)
Nmap done: 1 IP address (1 host up) scanned in 0.30 seconds
пример проверки SIP пота UPD 5060 на хосте pbx.roistat.com:
sudo nmap -sU -p U:5060 pbx.roistat.com
результат успешный:
Starting Nmap 7.80 ( https://nmap.org ) at 2023-03-20 10:16 MSK
Nmap scan report for pbx.roistat.com (5.53.123.194)
Host is up (0.030s latency).
PORT STATE SERVICE
5060/udp open|filtered sip
Nmap done: 1 IP address (1 host up) scanned in 2.69 seconds
пример проверки SIP пота UPD 5060 на хосте reg.aa.mts.ru:
sudo nmap -sU -p U:5060 reg.aa.mts.ru
результат успешный:
Starting Nmap 7.80 ( https://nmap.org ) at 2023-03-20 10:17 MSK
Nmap scan report for reg.aa.mts.ru (212.188.36.179)
Host is up (0.030s latency).
PORT STATE SERVICE
5060/udp open|filtered sip
Nmap done: 1 IP address (1 host up) scanned in 2.79 seconds
Пример проверки SIP пота UPD 5060 на локальном адресе:
sudo nmap -sU -p U:5060 192.168.88.212
не успешный результат:
Starting Nmap 7.80 ( https://nmap.org ) at 2023-03-20 10:16 MSK
Nmap scan report for srv1c (192.168.88.212)
Host is up (0.00012s latency).
PORT STATE SERVICE
5060/udp filtered sip
MAC Address: FC:34:97:C0:AC:1C (Unknown)
Nmap done: 1 IP address (1 host up) scanned in 0.30 seconds
для поиска: linux проверить открытые порты udp на удаленной машине