Send duplicate packets over two Internet connections

6,192

The Linux kernel version 2.6.35 introduces a new configuration option CONFIG_NETFILTER_XT_TARGET_TEE:

This option adds a "TEE" target with which a packet can be cloned and this clone be rerouted to another nexthop.

Iptables supports the -j TEE target since 1.4.8.

Earlier support was through the xtables addons, which include both kernel modules and userland tools. You may still prefer this option if you prefer to stick with your distribution's kernel and it's too old to have TEE.

There's a tutorial by bjou (written before the feature was included in the official kernel and iptables).

Share:
6,192

Related videos on Youtube

Andrea Spadaccini
Author by

Andrea Spadaccini

Updated on September 18, 2022

Comments

  • Andrea Spadaccini
    Andrea Spadaccini over 1 year

    I need to duplicate an RTP stream over two different (non-reliable) Internet connections.

    On the receiver side, I will probably run a custom program that will use a buffer and rebuild the stream before using it.

    But I have some trouble in splitting the traffic over the two connections. I did some research and found that maybe tc (part of iproute2) could be what I need.

  • Andrea Spadaccini
    Andrea Spadaccini about 13 years
    It is a mobility scenario: a mobile user uses two different network providers, so that the same data goes to the receiver in the event that one (or the other) has no signal. I'd avoid TCP if possible. Thanks!
  • BillThor
    BillThor about 13 years
    @Andrea: I would configure the mobile users system to connect using whichever connection is up. This would eliminate the duplication issue.
  • Andrea Spadaccini
    Andrea Spadaccini about 13 years
    I need to do evaluation of different strategies, duplication is just one of them. :)
  • L.R.
    L.R. over 10 years
    Webpage with tutorial requires password :(