Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2001 18:59:59 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
Cc:        freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: NAT with >1 gateway interface
Message-ID:  <Pine.BSF.4.21.0109021831400.96069-100000@cody.jharris.com>
In-Reply-To: <200109011358.JAA09511@world.std.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nick@rogness.net>
 - 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0109021831400.96069-100000>