20. Annexe C. Types ICMP▲
Voici une liste complète des types ICMP. Notez la référence qui pointe vers la RFC ou la personne qui a introduit le type et le code. Pour une liste complètement à jour des types et des codes ICMP, voir le document icmp-parameters sur Internet Assigned Numbers Authority.
iptables et netfilter utilisent le type ICMP 255 en interne, car il n'est réservé pour aucun usage réel. Si vous placez une règle comme iptables -A INPUT -p icmp --icmp-type 255 -j DROP, ceci DROP tous les paquets ICMP. C'est, en d'autres termes, utilisé pour sélectionner tous les types ICMP.
Tableau C.1. ICMP types
TYPE | CODE | Description | Requête | Erreur | Référence |
0 | 0 | Echo Reply | x | Â | RFC792 |
3 | 0 | Network Unreachable | Â | x | RFC792 |
3 | 1 | Host Unreachable | Â | x | RFC792 |
3 | 2 | Protocol Unreachable | Â | x | RFC792 |
3 | 3 | Port Unreachable | Â | x | RFC792 |
3 | 4 | Fragmentation needed but no frag. bit set | Â | x | RFC792 |
3 | 5 | Source routing failed | Â | x | RFC792 |
3 | 6 | Destination network unknown | Â | x | RFC792 |
3 | 7 | Destination host unknown | Â | x | RFC792 |
3 | 8 | Source host isolated (obsolete) | Â | x | RFC792 |
3 | 9 | Destination network administratively prohibited | Â | x | RFC792 |
3 | 10 | Destination host administratively prohibited | Â | x | RFC792 |
3 | 11 | Network unreachable for TOS | Â | x | RFC792 |
3 | 12 | Host unreachable for TOS | Â | x | RFC792 |
3 | 13 | Communication administratively prohibited by filtering | Â | x | RFC1812 |
3 | 14 | Host precedence violation | Â | x | RFC1812 |
3 | 15 | Precedence cutoff in effect | Â | x | RFC1812 |
4 | 0 | Source quench | Â | Â | RFC792 |
5 | 0 | Redirect for network | Â | Â | RFC792 |
5 | 1 | Redirect for host | Â | Â | Â |
5 | 2 | Redirect for TOS and network | Â | Â | RFC792 |
5 | 3 | Redirect for TOS and host | Â | Â | RFC792 |
8 | 0 | Echo request | x | Â | RFC792 |
9 | 0 | Router advertisement - Normal router advertisement | Â | Â | RFC1256 |
9 | 16 | Router advertisement - Does not route common traffic | Â | Â | RFC2002 |
10 | 0 | Route selection | Â | Â | RFC1256 |
11 | 0 | TTL equals 0 during transit | Â | x | RFC792 |
11 | 1 | TTL equals 0 during reassembly | Â | x | RFC792 |
12 | 0 | IP header bad (catchall error) | Â | x | RFC792 |
12 | 1 | Required options missing | Â | x | RFC1108 |
12 | 2 | IP Header bad length | Â | x | RFC792 |
13 | 0 | Timestamp request (obsolete) | x | Â | RFC792 |
14 | Â | Timestamp reply (obsolete) | x | Â | RFC792 |
15 | 0 | Information request (obsolete) | x | Â | RFC792 |
16 | 0 | Information reply (obsolete) | x | Â | RFC792 |
17 | 0 | Address mask request | x | Â | RFC950 |
18 | 0 | Address mask reply | x | Â | RFC950 |
20-29 | Â | Reserved for robustness experiment | Â | Â | Zaw-Sing Su |
30 | 0 | Traceroute | x | Â | RFC1393 |
31 | 0 | Datagram Conversion Error | Â | x | RFC1475 |
32 | 0 | Mobile Host Redirect | Â | Â | David Johnson |
33 | 0 | IPv6 Where-Are-You | x | Â | Bill Simpson |
34 | 0 | IPv6 I-Am-Here | x | Â | Bill Simpson |
35 | 0 | Mobile Registration Request | x | Â | Bill Simpson |
36 | 0 | Mobile Registration Reply | x | Â | Bill Simpson |
39 | 0 | SKIP | Â | Â | Tom Markson |
40 | 0 | Photuris | Â | Â | RFC2521 |