Re: Create a one-to-many tunnel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vimal schrieb:
> Hi,
> 
> I wish to create an IP in IP tunnel interface that works as follows:
> 
> At the sender:
> * The interface checks the dst IP address on the IP packet that it receives.
> * It encapsulates the IP packet inside another IP packet with:
>    Field 1: source address = the interface's IP address
>    Field 2: dst address = the packet's dst IP address
> * The interface now transmits the packet

your question isn't clear to me. anyway, have a look on the tun/tap kernel module, so you would be able to do the impementation in userspace (might be good for a first prototype or even good enough...).

good luck.
matthias

> 
> This is different from normal IPinIP tunnels because it is not
> point-to-point.  The operation in Field 2 is similar to NAT.  Also,
> this is different from SNAT, because I want the receiver to know what
> the original source IP.
> 
> At the receiver, assume that there is a stack that understands this
> special IPinIP packet and has a way to handle it.
> 
> If it's too specific, then I do not mind implementing it.
> 
> Thanks,


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux