Score:1

How to properly clone packets with tee?

gy flag

Trying to understand the TEE module of iptables. Intend is trying to clone and send the same packet to 2 IPs

Tried the following

iptables -A INPUT -P tcp --dport 2003 -j TEE --gateway IP1
iptables -A INPUT -P tcp --dport 2003 -j TEE --gateway IP2

Does this tee the traffic to both gateways or only the 1st rule? running the command iptables -L -v shows the rules and packets getting counted against the rule.

Also saw commands with -t mangle like

iptables -t mangle -A PREROUTING -P tcp --dport 2003 -j TEE --gateway IP1

Running the command iptables -L doesn't show prerouting values but I can see it in iptables -S

In any of the cases, this didn't seem like it was forwarding the packets to the said IP1 (on the same network). Running a TCP dump on the macing with IP1 could not show any data coming in.

Also any nice article on understanding IPTABLES for Dummies ...Official docs well went above my head :/

djdomi avatar
za flag
https://serverfault.com/questions/179968/how-to-tee-udp-packets-onto-a-different-host take a look here
in flag
Regarding iptables documentation, https://wiki.archlinux.org/title/iptables is quite decent, and [this linked picture](https://www.frozentux.net/iptables-tutorial/images/tables_traverse.jpg) gives a very nice overview of tables and chains ([this image](https://upload.wikimedia.org/wikipedia/commons/3/37/Netfilter-packet-flow.svg) linked from wikipedia is sort of the same thing but in more detail, but it is much less clear).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.