From owner-freebsd-questions Sat Jul 4 01:52:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA00831 for freebsd-questions-outgoing; Sat, 4 Jul 1998 01:52:15 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA00819 for ; Sat, 4 Jul 1998 01:52:13 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.5/8.8.8) with SMTP id BAA02934; Sat, 4 Jul 1998 01:52:11 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Sat, 4 Jul 1998 01:52:10 -0700 (PDT) From: Doug White To: Steve Hicks cc: freebsd-questions@FreeBSD.ORG Subject: Re: IPFW and NATD woes. In-Reply-To: <199807021850.TAA25446@slush.bucket.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 2 Jul 1998, Steve Hicks wrote: > I have a machine with a public interface (ed0 194.159.240.116 and > 194.159.240.124) and a private interface (ep0 192.168.1.1) > > I have rebuilt my kernel with options IPFIREWALL and options IPDIVERT. > I have added the natd entry in /etc/services. > > Now, what I want to do is take all traffic destined for 194.159.240.124, > translate it and send it out on ep0 to machine 192.168.1.2. However, I > still want all traffic destined for 194.159.240.116 to end up on the > firewall. Easy -- add an Ethernet alias for this IP using ifconfig, then add a redirect_address line to your natd configuration that maps local ip 192.168.1.2 to the newly aliased IP address. See the natd man pages for details. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message