BarbWire Help
File
This match is used to check for certain protocols. Examples
of protocols are TCP, UDP and ICMP. First of all the protocol
match can take one of the three aforementioned protocols,
as well as ALL, which means to match all of the previous protocols.
ALL protocols is the default behavior in case the protocol
match is not used. This match can also be inversed with the
preceding NOT, so NOT tcp would mean to match the ICMP and
UDP protocols.
This is a complete listing of all ICMP types:
ICMP types
| TYPE |
CODE |
Description |
Query |
Error |
| 0 |
0 |
Echo Reply |
x |
|
| 3 |
0 |
Network Unreachable |
|
x |
| 3 |
1 |
Host Unreachable |
|
x |
| 3 |
2 |
Protocol Unreachable |
|
x |
| 3 |
3 |
Port Unreachable |
|
x |
| 3 |
4 |
Fragmentation
needed but no frag. bit set |
|
x |
| 3 |
5 |
Source routing
failed |
|
x |
| 3 |
6 |
Destination
network unknown |
|
x |
| 3 |
7 |
Destination
host unknown |
|
x |
| 3 |
8 |
Source host
isolated (obsolete) |
|
x |
| 3 |
9 |
Destination
network administratively prohibited |
|
x |
| 3 |
10 |
Destination
host administratively prohibited |
|
x |
| 3 |
11 |
Network unreachable
for TOS |
|
x |
| 3 |
12 |
Host unreachable
for TOS |
|
x |
| 3 |
13 |
Communication
administratively prohibited by filtering |
|
x |
| 3 |
14 |
Host precedence
violation |
|
x |
| 3 |
15 |
Precedence cutoff
in effect |
|
x |
| 4 |
0 |
Source quench |
|
|
| 5 |
0 |
Redirect for
network |
|
|
| 5 |
1 |
Redirect for
host |
|
|
| 5 |
2 |
Redirect for
TOS and network |
|
|
| 5 |
3 |
Redirect for
TOS and host |
|
|
| 8 |
0 |
Echo request |
x |
|
| 9 |
0 |
Router advertisement |
|
|
| 10 |
0 |
Route solicitation |
|
|
| 11 |
0 |
TTL equals 0
during transit |
|
x |
| 11 |
1 |
TTL equals 0
during reassembly |
|
x |
| 12 |
0 |
IP header bad
(catchall error) |
|
x |
| 12 |
1 |
Required options
missing |
|
x |
| 13 |
0 |
Timestamp request
(obsolete) |
x |
|
| 14 |
|
Timestamp reply
(obsolete) |
x |
|
| 15 |
0 |
Information
request (obsolete) |
x |
|
| 16 |
0 |
Information
reply (obsolete) |
x |
|
| 17 |
0 |
Address mask
request |
x |
|
| 18 |
0 |
Address mask
reply |
x |
|
|