kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: j.vimal@gmail.com (Vimal)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Create a one-to-many tunnel
Date: Fri, 11 Mar 2011 10:29:08 -0800	[thread overview]
Message-ID: <AANLkTi=R_qSAzxTdk9pV0yLrDqq-3yrw0FLti2D_Yg0v@mail.gmail.com> (raw)

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

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,
-- 
Vimal

             reply	other threads:[~2011-03-11 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 18:29 Vimal [this message]
2011-03-15 13:26 ` Create a one-to-many tunnel Matthias Brugger
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='AANLkTi=R_qSAzxTdk9pV0yLrDqq-3yrw0FLti2D_Yg0v@mail.gmail.com' \
    --to=j.vimal@gmail.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).