blob: 16fd9dfd932a9f396e1b9f2a718c88494b5dd024 [file] [log] [blame]
Henrik Nordstromc2794132004-01-22 15:04:24 +00001This module matches packets based on their
2.B address type.
3Address types are used within the kernel networking stack and categorize
4addresses into various groups. The exact definition of that group depends on the specific layer three protocol.
Jan Engelhardtaeafdb82008-08-12 11:42:04 +02005.PP
Henrik Nordstromc2794132004-01-22 15:04:24 +00006The following address types are possible:
7.TP
8.BI "UNSPEC"
9an unspecified address (i.e. 0.0.0.0)
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020010.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000011.BI "UNICAST"
12an unicast address
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020013.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000014.BI "LOCAL"
15a local address
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020016.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000017.BI "BROADCAST"
18a broadcast address
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020019.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000020.BI "ANYCAST"
21an anycast packet
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020022.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000023.BI "MULTICAST"
24a multicast address
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020025.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000026.BI "BLACKHOLE"
27a blackhole address
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020028.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000029.BI "UNREACHABLE"
30an unreachable address
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020031.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000032.BI "PROHIBIT"
33a prohibited address
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020034.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000035.BI "THROW"
36FIXME
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020037.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000038.BI "NAT"
39FIXME
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020040.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000041.BI "XRESOLVE"
Henrik Nordstromc2794132004-01-22 15:04:24 +000042.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010043[\fB!\fP] \fB\-\-src\-type\fP \fItype\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +000044Matches if the source address is of given type
45.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010046[\fB!\fP] \fB\-\-dst\-type\fP \fItype\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +000047Matches if the destination address is of given type
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020048.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010049.BI "\-\-limit\-iface\-in"
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020050The address type checking can be limited to the interface the packet is coming
51in. This option is only valid in the
52.BR PREROUTING ,
53.B INPUT
54and
55.B FORWARD
56chains. It cannot be specified with the
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010057\fB\-\-limit\-iface\-out\fP
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020058option.
59.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010060\fB\-\-limit\-iface\-out\fP
Jan Engelhardt74670b12009-05-13 17:40:05 +020061The address type checking can be limited to the interface the packet is going
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020062out. This option is only valid in the
63.BR POSTROUTING ,
64.B OUTPUT
65and
66.B FORWARD
67chains. It cannot be specified with the
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010068\fB\-\-limit\-iface\-in\fP
Laszlo Attila Toth4dfd25a2008-06-06 14:17:53 +020069option.