====== services ====== Ceci n'est pas vraiment un fichier de configuration mais plutôt un fichier d'information. ===== Utilisation ===== **Débutant, à savoir :** [[:doc:systeme:more | La commande MORE]] Tu veux savoir quel service tourne sur le port 80 alors regarde dans ce fichier : mattux@DarKVaDoR:~$ more /etc/services # Network services, Internet style # # Note that it is presently the policy of IANA to assign a single well-known # port number for both TCP and UDP; hence, officially ports have two entries # even if the protocol doesn't support UDP operations. # # Updated from http://www.iana.org/assignments/port-numbers and other # sources like http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/services . # New ports will be added on request if they have been officially assigned # by IANA and used in the real-world or are needed by a debian package. # If you need a huge list of used numbers please install the nmap package. tcpmux 1/tcp # TCP port service multiplexer echo 7/tcp echo 7/udp discard 9/tcp sink null discard 9/udp sink null systat 11/tcp users daytime 13/tcp daytime 13/udp netstat 15/tcp qotd 17/tcp quote msp 18/tcp # message send protocol msp 18/udp chargen 19/tcp ttytst source chargen 19/udp ttytst source ftp-data 20/tcp ftp 21/tcp fsp 21/udp fspd ssh 22/tcp # SSH Remote Login Protocol ssh 22/udp telnet 23/tcp smtp 25/tcp mail time 37/tcp timserver time 37/udp timserver rlp 39/udp resource # resource location nameserver 42/tcp name # IEN 116 whois 43/tcp nicname tacacs 49/tcp # Login Host Protocol (TACACS) tacacs 49/udp re-mail-ck 50/tcp # Remote Mail Checking Protocol re-mail-ck 50/udp domain 53/tcp # name-domain server domain 53/udp mtp 57/tcp # deprecated tacacs-ds 65/tcp # TACACS-Database Service tacacs-ds 65/udp bootps 67/tcp # BOOTP server bootps 67/udp bootpc 68/tcp # BOOTP client bootpc 68/udp tftp 69/udp gopher 70/tcp # Internet Gopher gopher 70/udp rje 77/tcp netrjs finger 79/tcp www 80/tcp http # WorldWideWeb HTTP www 80/udp # HyperText Transfer Protocol ===== Recherches avec Grep ===== Imaginons qu'on veuille le port 6667, le fichier est beaucoup trop long pour le faire défiler alors on va utiliser [[:doc:systeme:grep | la commande GREP]] comme ceci : mattux@DarKVaDoR:~$ more /etc/services | grep 6667 ircd 6667/tcp # Internet Relay Chat Vous voyez, c est beaucoup plus simple et plus rapide. \\ On peut le faire pour tout ce qu'on veut : **Exemple :** On veut connaître le port de ''ssh'' ? Alors on écrit : mattux@DarKVaDoR:~$ more /etc/services | grep ssh ssh 22/tcp # SSH Remote Login Protocol ssh 22/udp //[[matt_chile@yahoo.fr|MaTTuX_]] 2009/01/14 16:57//