title: Cloning and forwarding packets to multiple IP addresses
body: <p>I'm trying to forward all incoming TCP packets to multiple IP addresses.</p>
  
  <p>Setup:</p>
  
  <pre><code>A - 10.10.10.10
  B - 10.10.10.11
  C - 10.10.10.12
  D - 10.10.10.13
  </code></pre>
  
  <p>I want B, C and D to receive (on port 8000) all incoming packets on port 12345 of <strong>A</strong>. Ideally I wanted A to do this.</p>
  
  <p>I can forward to one machine with this rule on A:</p>
  
  <pre><code>iptables -t nat -A PREROUTING -p tcp --dport 12345 -j REDIRECT --to 10.10.10.11:8000
  </code></pre>
  
  <p>I can also clone the packet using the TEE option:</p>
  
  <pre><code>iptables -t mangle -A PREROUTING -p tcp --dport 8000 -d 10.10.10.11 -j TEE --gateway 10.10.10.12
  </code></pre>
  
  <p>So far everything is okay. The problem is that C will receive the packet with the destination IP of B and not C. Furthermore, I don't know how can I forward to D and/or more other destinations.</p>
  
  <p><strong>How can I make A, with iptables rules, send all the incoming packets on port 12345 to all the other machines (B,C and D) to port 8000?</strong></p>