From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Wed, 15 Apr 2009 14:03:35 +0200 Message-ID: From: Patrick Kristiansen To: 9fans@9fans.net Content-Type: multipart/alternative; boundary=000e0cd2457ab57533046796bcd9 Subject: [9fans] NAT implementation Topicbox-Message-UUID: db06fa28-ead4-11e9-9d60-3106f5b1d025 --000e0cd2457ab57533046796bcd9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello 9fans. I'm thinking of writing a NAT implementation for plan 9. I have searched the archives and I'm not quite sure how to get started. As I see it there could be three ways of approaching this: 1. User space implementation using ipmux 2. User space using pkt interfaces in ipifc. 3. Kernel using something like sources/dho/nfil Do you have any advices on how to capture packets and how to send them out again after replacing src/dst addr and port? Are there any ways of testing NAT in a virtual machine? Right now I'm using vmware and it would be nice to be able to test it without setting up a real machine with two Ethernet interfaces. -Patrick Kristiansen --000e0cd2457ab57533046796bcd9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello 9fans.

I'm thinking of writing a NAT implement= ation for plan 9. I have searched the archives and I'm not quite sure h= ow to get started.

As I see it there could be thre= e ways of approaching this:

1. User space implementation using ipmux
2. U= ser space using pkt interfaces in ipifc.=A0
3. Kernel using somet= hing like sources/dho/nfil

Do you have any advices= on how to capture packets and how to send them out again after replacing s= rc/dst addr and port?

Are there any ways of testing NAT in a virtual machine?= Right now I'm using vmware and it would be nice to be able to test it = without setting up a real machine with two Ethernet interfaces.

-Patrick Kristiansen
--000e0cd2457ab57533046796bcd9--