Namp map n'a trouvé que trois ports ouverts sur mon ordinateur?


0

Je suis un débutant en Linux.

J'ai essayé de scanner le port ouvert de mon ordinateur mais j'ai trouvé que seuls trois ports sont ouverts, à savoir les ports 80, 53 et 65535.

Ensuite, j'ai essayé de scanner mon téléphone mobile Android.Il a montré que tous les ports sont fermés.

J'ai utilisé la commande suivante:

nmap -sT -p- (myip)

Est-ce normal?Ou est-ce que je fais quelque chose de mal?

1

It is normal that the port are closed if no service like ssh server or web server is opening them.

If you install openssh-server port 22 will be opened, if you install apache2 port 80 will be opened.

If you use ssh ( apt-get install openssh-client ) or a webbrowser it will temporary open a random high port for the duration of the usage.

Port 53 is dns. Port 80 is http, do netstat -tlpen to see which process opens which port, especially the port 80 in your case.

Since on your android phone you are not offering any services, only using them it is nornal that nmap shows no open ports.

You find the default port numbers in /etc/services


0

The ports 0-1023 are called well known ports, they are registered with special services: 22 ssh 23 telnet 25 smtp 80 http 143 imap 443 https and so on, see /etc/services.

This is the server side waiting for a client to connect.

The client ( telnet, webbrowser, putty ...) will use a random high port (ports are 16 bit so 0- 65k ) for example 38743, it opens the connection by sending a tcp packet with set syn flag to the server.

That packet has the sender ip and port and the destination ip and port.

The server replies with a packet with ack flag set, and uses the clients packets sender ip and port as destination.

So if your Webbrowser opens connections to 2 different webservers it uses different random high ports for each server.