Injecting packets into the kernel
Quoted 4 lines
Quoted 3 lines
However, for the kernel they are now LOCAL packets, which are not masq'ed. To make that work, they need to look "remote" (means:
received by a device). Any ideas?Use a TUN/TAP device (or ethertap on 2.2).
That is exactly what diald does, but the packets written to such a device have no effect, they do not seem to make their way through the kernel.
Quoted 2 lines · [email protected] said:
but the packets written to such a device have no effect, they do not seem to make their way through the kernel.
Hmmm, well that's exactly what UML does and its packets are treated in exactly the way you seem to want. They are treated as coming from a totally different machine (although UML, as a complete machine, has a complete network stack, network devices with their own IP addresses, etc, so you might just not be making your packets look "remote" enough).
Jeff