blob: 53beb2e52d81701c4d396d77c97c5a2657162e84 [file] [log] [blame]
Henrik Nordstromc2794132004-01-22 15:04:24 +00001This module matches on the bridge port input and output devices enslaved
2to a bridge device. This module is a part of the infrastructure that enables
3a transparent bridging IP firewall and is only useful for kernel versions
4above version 2.5.44.
5.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01006[\fB!\fP] \fB\-\-physdev\-in\fP \fIname\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +00007Name of a bridge port via which a packet is received (only for
8packets entering the
9.BR INPUT ,
10.B FORWARD
11and
12.B PREROUTING
13chains). If the interface name ends in a "+", then any
14interface which begins with this name will match. If the packet didn't arrive
15through a bridge device, this packet won't match this option, unless '!' is used.
16.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010017[\fB!\fP] \fB\-\-physdev\-out\fP \fIname\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +000018Name of a bridge port via which a packet is going to be sent (for packets
19entering the
20.BR FORWARD ,
21.B OUTPUT
22and
23.B POSTROUTING
24chains). If the interface name ends in a "+", then any
25interface which begins with this name will match. Note that in the
26.BR nat " and " mangle
27.B OUTPUT
28chains one cannot match on the bridge output port, however one can in the
29.B "filter OUTPUT"
Bart De Schuymerea268e12009-01-26 16:31:51 +010030chain. If the packet won't leave by a bridge device or if it is yet unknown what
31the output device will be, then the packet won't match this option,
32unless '!' is used.
Henrik Nordstromc2794132004-01-22 15:04:24 +000033.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010034[\fB!\fP] \fB\-\-physdev\-is\-in\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +000035Matches if the packet has entered through a bridge interface.
36.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010037[\fB!\fP] \fB\-\-physdev\-is\-out\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +000038Matches if the packet will leave through a bridge interface.
39.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010040[\fB!\fP] \fB\-\-physdev\-is\-bridged\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +000041Matches if the packet is being bridged and therefore is not being routed.
42This is only useful in the FORWARD and POSTROUTING chains.