2010年7月19日 星期一

測試 UDP Port 狀態

FreeBSD 需由 ports 安裝 nmap


nmap -p PORT -sU -P0 IP


結果:

[root@XXX] ~# nmap -p 1812 -sU -P0 127.0.0.1

Starting Nmap 5.21 ( http://nmap.org ) at 2010-07-19 17:22 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (1.0s latency).
PORT STATE SERVICE
1812/udp open radius

Nmap done: 1 IP address (1 host up) scanned in 2.11 seconds
[root@XXX] ~# nmap -p 1815 -sU -P0 127.0.0.1

Starting Nmap 5.21 ( http://nmap.org ) at 2010-07-19 17:22 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00051s latency).
PORT STATE SERVICE
1815/udp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 1.19 seconds