Michael Schmidt wrote:
Hej NG
Kan jeg via ping finde ud af hvilke porte der er lukket hhv. ud og ind?
(Hvad er den "rigtige" kommando til formålet?)
Ping viser ikke portstatus.
Fra man ping:
Ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit
an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams
(``pings'') have an IP and ICMP header, followed by a
``struct timeval'' and then an arbitrary number of ``pad'' bytes
used to fill out the packet.
Nmap viser portstatus; se 'man nmap'.
Eks.:
$ nmap localhost
Starting Nmap 4.20 ( http://insecure.org ) at 2008-04-16 13:52 UTC
Interesting ports on localhost (127.0.0.1):
Not shown: 1692 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
631/tcp open ipp
6000/tcp open X11
10000/tcp open snet-sensor-mgmt
Nmap finished: 1 IP address (1 host up) scanned in 0.590 seconds