Subject: NAT Help
To: None <current-users@NetBSD.ORG>
From: Scott Ellis <scotte@netbsd.warped.com>
List: current-users
Date: 03/03/1997 10:48:07
--1ZkKZWugYDfo1ODt
Content-Type: text/plain; charset=us-ascii

I missed the 's' in users, so please pardon the extra header crap. ;_)

-- 
   //////////////////////////////////////////////////////////////////////
  //    Scott Ellis     //   scotte@warped.com   //   sellis@gi.com   //
 //////////////////////////////////////////////////////////////////////
// WARNING: This signature warps  time and space in its vicinity    //


--1ZkKZWugYDfo1ODt
Content-Type: message/rfc822
Content-Description: Forwarded message from MAILER-DAEMON@mail.NetBSD.ORG

          by netbsd.warped.com (8.8.5/8.8.4) with SMTP
	  id KAA08325 for <scotte@netbsd.warped.com>; Mon, 3 Mar 1997 10:40:01 -0800 (PST)
Message-Id: <199703031840.KAA08325@netbsd.warped.com>
Date: 3 Mar 1997 18:45:43 -0000
From: MAILER-DAEMON@mail.NetBSD.ORG
To: scotte@netbsd.warped.com

Hi. This is the qmail-send program at mail.NetBSD.ORG.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<current-user@netbsd.org>:
No such address. (#5.1.1)

--- Below this line is a copy of the message.

  by homeworld.cygnus.com with SMTP; 3 Mar 1997 18:45:35 -0000
          by netbsd.warped.com (8.8.5/8.8.4)
	  id KAA08296; Mon, 3 Mar 1997 10:39:41 -0800 (PST)
Message-ID: <19970303103941.58610@netbsd.warped.com>
Date: Mon, 3 Mar 1997 10:39:41 -0800
From: Scott Ellis <scotte@netbsd.warped.com>
To: current-user@netbsd.org
Subject: NAT help
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

I'm trying to get NAT working on a machine with one ethernet interface,
and am having a bit of trouble.

Machine 1 has an IP of 10.0.0.5 (non routable, internal IP)
Machine 2 has a real IP of 204.210.42.7, with an alias of 10.0.0.4

I've made 10.0.0.4 the default route for Machine 1, and indeed, I can
ping/telnet/whatever to Machine 2 from Machine 1.

Now I want to setup NAT, so Machine 1 can see the 'rest of the world'.
I fed ipnat the line:

map ie0 10.0.0.0/24  -> 204.210.42.7/32  portmap tcp 10000:20000

But that didn't appear to do any good. ;-)  Connections from
Machine 1 never get routed anywhere..that is, if I do 'telnet somewhere'
on Machine 1, 'ipnat -s' doesn't even show any packets as having gone
over the interface on Machine 2.


Is what I want to do possible, or do I really need another ethernet
interface? (impossible in my current setup)

-- 
   //////////////////////////////////////////////////////////////////////
  //    Scott Ellis     //   scotte@warped.com   //   sellis@gi.com   //
 //////////////////////////////////////////////////////////////////////
// WARNING: This signature warps  time and space in its vicinity    //


--1ZkKZWugYDfo1ODt--