From owner-freebsd-hackers Mon Sep 1 22:55:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA16923 for hackers-outgoing; Mon, 1 Sep 1997 22:55:50 -0700 (PDT) Received: from DNS.Lamb.net (root@DNS.Lamb.net [207.90.181.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA16918 for ; Mon, 1 Sep 1997 22:55:48 -0700 (PDT) Received: (from uucp@localhost) by DNS.Lamb.net (8.8.6/8.8.6) id WAA07756; Mon, 1 Sep 1997 22:55:55 -0700 (PDT) Received: from gatekeeper.Alameda.net(207.90.181.2) via SMTP by DNS.Lamb.net, id smtpd007754; Mon Sep 1 22:55:49 1997 Received: (from ulf@localhost) by Gatekeeper.Alameda.net (8.8.6/8.7.6) id WAA15081; Mon, 1 Sep 1997 22:55:40 -0700 (PDT) From: Ulf Zimmermann Message-Id: <199709020555.WAA15081@Gatekeeper.Alameda.net> Subject: Re: Help With NATD configuration (2 ethernets) In-Reply-To: <19970902002749.11791@crh.cl.msu.edu> from Charles Henrich at "Sep 2, 97 00:27:49 am" To: henrich@crh.cl.msu.edu (Charles Henrich) Date: Mon, 1 Sep 1997 22:55:40 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Take a look at www.computerbits.com. They just wrote about natd and it took me about 2 minutes to setup a simular system. > Okay, Im trying to setup a real simple natd system here, and Im getting > absolutely nowhere, I've searched the archives thouroughly and havent yet seen > an answer how to configure natd (which makes me think I must be doing > something really simply stupid). > > I want: > > [Internal LAN] <--> (ed1: NATDHOST ed0:) <--> [The Net] > > Simple eh? I have: > > /sbin/ipfw -f flush > /sbin/ipfw add divert 6668 all from any to any via ed1 > /sbin/ipfw add pass all from any to any > > Except Im thinking I probably need something for ed0 as well?? > > And running natd with any number of switches gets me the same thing: > > #/usr/local/sbin/natd -v -s -m -u -n ed0 > > In [ICMP] 10.0.0.2 -> 165.113.121.81 aliased to > 10.0.0.2 -> 165.113.121.81 > In [ICMP] 10.0.0.2 -> 165.113.121.81 aliased to > 10.0.0.2 -> 165.113.121.81 > > Obviously it isnt changing the source address, so of course no reply is > possible.. Any help is most amazingly appreciated, Thanks! > > -Crh > > Charles Henrich Michigan State University henrich@msu.edu > > http://pilot.msu.edu/~henrich > -- Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-769-2936 Alameda Networks, Inc. | http://www.Alameda.net | Fax#: 510-521-5073