9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Devon H. O'Dell" <devon.odell@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] NAT implementation
Date: Wed, 15 Apr 2009 12:31:10 -0400	[thread overview]
Message-ID: <9ab217670904150931k2949ced0qb4420dd6115d79c0@mail.gmail.com> (raw)
In-Reply-To: <20090415160640.GR4823@masters6.cs.jhu.edu>

2009/4/15 Nathaniel W Filardo <nwf@cs.jhu.edu>:
> On Wed, Apr 15, 2009 at 02:03:35PM +0200, Patrick Kristiansen wrote:
>> I'm thinking of writing a NAT implementation for plan 9.
>
> I would suggest instead that it might be easier to write an adaptor program
> for non-Plan 9 hosts which made their network stacks talk to a /net.  That
> is, you'd want a program which spoke TAP/TUN out one end to the host kernel
> and out the other dialed and imported /net from the Plan 9 gateway.  AFAIK
> TAP/TUN-like things exist on most OSes, and there's good example code in
> OpenVPN (for example).

It's not simpler, requiring N implementations for heterogeneity, where
N is the number of non-Plan 9 hosts you support. Certainly Windows,
Linux, OS X, and FreeBSD would all need separate implementations. OS X
doesn't have a tap(4) device per default, and Windows needs a driver
as well. Of course some code can be shared, but I believe this will
simply lead to bloat.

If we want Plan 9 to work with other operating systems, let's make it
work with other operating systems... I don't think forcing everyone
else to conform to us is the right answer, in this case. NAT is
well-defined, well-understood, and honestly not that difficult to
implement.

> The program would have to know enough about the on-the-wire representation
> of TCP/IP and UDP/IP to do connection tracking etc. (much like NAT, I
> suppose) but the advantage is that it wouldn't impact the Plan 9 kernel.

NAT can be implemented in userland in Plan 9 as is.

> --nwf;
>
> P.S. This idea shamelessly stolen from vsrinivas, but he's mailing-list shy.

Not trying to come off as catty, I just don't think this is a
practical idea. Might be a fun project, nonetheless.

--dho



  parent reply	other threads:[~2009-04-15 16:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15 12:03 Patrick Kristiansen
2009-04-15 12:32 ` Devon H. O'Dell
2009-04-15 13:44   ` Patrick Kristiansen
2009-04-15 12:46 ` erik quanstrom
2009-04-15 16:06 ` Nathaniel W Filardo
2009-04-15 16:29   ` Anthony Sorace
2009-04-15 16:41     ` Devon H. O'Dell
2009-04-15 16:31   ` Devon H. O'Dell [this message]
2009-04-15 16:44     ` Anthony Sorace
2009-04-15 17:32       ` blstuart

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=9ab217670904150931k2949ced0qb4420dd6115d79c0@mail.gmail.com \
    --to=devon.odell@gmail.com \
    --cc=9fans@9fans.net \
    /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).