From mboxrd@z Thu Jan 1 00:00:00 1970 From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] /net/ip* MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-efymlshnpxzjhwqbznglresegj" Message-Id: <20010126002355.E916319A01@mail.cse.psu.edu> Date: Thu, 25 Jan 2001 19:23:35 -0500 Topicbox-Message-UUID: 51fd2712-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-efymlshnpxzjhwqbznglresegj Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The way to build a nat with plan 9 is to set up 2 ip stacks, open a pkt interface on each one, and start a process that does the translation by xfering packets from one to the other: Look at ppp to see how to use a packet interface. --upas-efymlshnpxzjhwqbznglresegj Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Thu Jan 25 17:41:25 EST 2001 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Thu Jan 25 17:41:24 EST 2001 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.8.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 317BE19A0B; Thu, 25 Jan 2001 17:41:12 -0500 (EST) Received: from mallorn.advancedsolutions.com (mallorn.advancedsolutions.com [216.3.74.86]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 891ED19A09 for <9fans@cse.psu.edu>; Thu, 25 Jan 2001 17:40:16 -0500 (EST) Received: (from lucho@localhost) by mallorn.advancedsolutions.com (8.9.3/8.9.3) id RAA07035 for 9fans@cse.psu.edu; Thu, 25 Jan 2001 17:40:15 -0500 From: Latchesar Ionkov To: 9fans@cse.psu.edu Message-ID: <20010125174015.A7009@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Subject: [9fans] /net/ip* Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Thu, 25 Jan 2001 17:40:15 -0500 Hi, I am trying to write a simple program that does network address translation in Plan9. I am using /net/ipmux to get the packets I need to modify, but I don't quite understand where to write these packets after I modify them :) So far I see two choices: /net/ipmux//data and /net/ipifc//data. I tried both of them but I don't see any packet going out or I see the packet receiving from the filter again. Any ideas what should I do? Thanks, Lucho --upas-efymlshnpxzjhwqbznglresegj--