Allow IPIP from any address in network

I need to make an IPIP tunnel where it can receive packets from any address in a particular network, say 10.0.0.0/8. Is there a way to do this?

Bump

What are you trying to achive?

The only “solution” is, to configure a IPIP tunnel interface for each IP address in your network. I doubt, that it is possible to have 256256256=16.777.216 IPIP tunnel interfaces `(o.0)´

I guess I would have to do what you said, but in my case about 50 of them.

Probably it would be better to create a script that will look for incoming GRE packets and create an IPIP tunnel for that address, and another one that will remove unused tunnels once in a while.

wireguard (7 beta) does something similar to what you want provided that what you want is that the tunnel “adapts” (as in roams) to changing input address, and not a multipoint-point tunnel where I’m not sure what you would do with the return traffic.

Edit: s/wireshark/wireguard/ sorry my dyslexia