kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: matthias.bgg@googlemail.com (Matthias Brugger)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Create a one-to-many tunnel
Date: Tue, 15 Mar 2011 14:26:39 +0100	[thread overview]
Message-ID: <4D7F690F.7070400@gmail.com> (raw)
In-Reply-To: <AANLkTi=R_qSAzxTdk9pV0yLrDqq-3yrw0FLti2D_Yg0v@mail.gmail.com>

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,

  reply	other threads:[~2011-03-15 13:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 18:29 Create a one-to-many tunnel Vimal
2011-03-15 13:26 ` Matthias Brugger [this message]
2011-03-16  4:40   ` Vimal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D7F690F.7070400@gmail.com \
    --to=matthias.bgg@googlemail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).