From owner-freebsd-questions Sun Sep 2 17: 0:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id D1C5337B405; Sun, 2 Sep 2001 17:00:01 -0700 (PDT) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f82Nxx813034; Sun, 2 Sep 2001 19:00:00 -0500 (CDT) (envelope-from nick@rogness.net) Date: Sun, 2 Sep 2001 18:59:59 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com Cc: freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: NAT with >1 gateway interface In-Reply-To: <200109011358.JAA09511@world.std.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 1 Sep 2001, Kenneth W Cochran wrote: > Hello: > > How do I "properly" set up NAT on a system that "transmits" and > "receives" on different interfaces? > > Briefly - Machine A receives on fxp0 & transmits on ppp0. I'd like to > use a 2nd Ethernet on Machine A (fxp1) for the "NAT"ed/masqueraded > network. > [snip] > > I'm thinking something needs to be tweaked in the ipfw and/or > natd-config(s). Suggestions? Also, where would be the best place(s) > to put these "customizations" (for example, so as to not be any more > "disruptive" than necessary to the base-OS configs)? In /etc/rc.conf: firewall_enable="YES" gateway_enable="YES" natd_enable="YES" natd_interface="ppp0" Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message