From owner-freebsd-questions Fri Oct 8 1: 5: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.portal2.com (ns1.portal2.com [203.85.226.193]) by hub.freebsd.org (Postfix) with SMTP id 1348614F27 for ; Fri, 8 Oct 1999 01:04:59 -0700 (PDT) (envelope-from yusufg@outblaze.com) Received: (qmail 90205 invoked from network); 8 Oct 1999 08:02:14 -0000 Received: from yusufg.portal2.com (qmailr@203.85.226.249) by ns1.portal2.com with SMTP; 8 Oct 1999 08:02:14 -0000 Received: (qmail 31731 invoked by uid 500); 8 Oct 1999 08:03:16 -0000 Date: Fri, 8 Oct 1999 16:03:16 +0800 From: Yusuf Goolamabbas To: Chris Dillon Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Trying to achieve zen with natd Message-ID: <19991008160316.A31723@outblaze.com> References: <19991006112744.A3111@outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > That doesn't really make any sense... Is fxp1 attached to your > > > private network, or the public network? > > > > Both, some machines on that network have valid routable address and some > > machines have non routable addresses. Therefore I have aliased a 192.168 > > on this interface > > > > What I would like is packets coming via this aliased interface get > > NAT'ted to the public interface which is also bound to the same card > > This card is connected to a switch which connects via a router to the > > WAN interface > > Aah, now that makes sense. Someone asked me how to do this just the > other day. :-) Put the IP address of the alias you assigned to fxp1 > in natd_interface="" in /etc/rc.conf instead of the interface name. Did that in the beggining. The issue is that the machines default router is on 'fxp0' whilst the NATD alias is on "fxp1". Machines in the 192.168.0 network can only go to the network listed on fxp1. They can't go to the network on fxp0 . Is this what NAT is supposed to do What I thought was that NAT would rewrite the source addresses of incoming packets to the real IP address bound to fxp1 and then normal routing would occur from there. This doesn't seem to be happening To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message