Patrick McHardy | 8532c70 | 2010-05-21 12:57:23 +0200 | [diff] [blame] | 1 | The \fBTEE\fP target will clone a packet and redirect this clone to another |
| 2 | machine on the \fBlocal\fP network segment. In other words, the nexthop |
| 3 | must be the target, or you will have to configure the nexthop to forward it |
| 4 | further if so desired. |
| 5 | .TP |
| 6 | \fB\-\-gateway\fP \fIipaddr\fP |
| 7 | Send the cloned packet to the host reachable at the given IP address. |
| 8 | Use of 0.0.0.0 (for IPv4 packets) or :: (IPv6) is invalid. |
| 9 | .PP |
| 10 | To forward all incoming traffic on eth0 to an Network Layer logging box: |
| 11 | .PP |
| 12 | \-t mangle \-A PREROUTING \-i eth0 \-j TEE \-\-gateway 2001:db8::1 |