Hi,
I'm trying to use iptables with the parameter tee.
My host ist called 192.168.0.206/24 and I want to duplicate packets to 192.168.0.100.
I've used tee in iptables in the mangle chain.
Code:
Chain PREROUTING (policy ACCEPT 3 packets, 178 bytes)
pkts bytes target prot opt in out source destination
0 0 TEE icmp -- * * 192.168.0.210 0.0.0.0/0 TEE gw:192.168.0.100
3 178 TEE all -- * * 0.0.0.0/0 0.0.0.0/0 TEE gw:192.168.0.100
Chain INPUT (policy ACCEPT 1 packets, 78 bytes)
pkts bytes target prot opt in out source destination
1 78 TEE all -- * * 0.0.0.0/0 0.0.0.0/0 TEE gw:192.168.0.100
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 4 packets, 256 bytes)
pkts bytes target prot opt in out source destination
4 256 TEE all -- * * 0.0.0.0/0 0.0.0.0/0 TEE gw:192.168.0.100
Chain POSTROUTING (policy ACCEPT 4 packets, 256 bytes)
pkts bytes target prot opt in out source destination
The 192.168.0.206/24 network is on eth3
But if I do
tcpdump -i eth3 host 192.168.0.100
I can't see anything going there.
Can anybody tell me my mistake?