Multipoint tunnel on Linux
I need to create a multipoint tunnel under linux using gre. So when I receive a packet from an host, say 10.0.0.1, i need it to be tunneled through 2 tunnels toward 2 different destinations. I can create the 2 tunnels, using ip tunnel ..., i also create two routing table entries, like
10.0.0.0 mask 255.255.255.0 tunnel1
10.0.0.0 mask 255.255.255.0 tunnel2
the problem is that when the first rule is found, the second one is discarded. Is there a way to overcome this problem?
Maybe a package that duplicates packets or something like that.
thanks you very much in advance for your help!