From owner-freebsd-questions Fri Dec 31 11: 3:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tetron02.tetronsoftware.com (ftp.tetronsoftware.com [208.236.46.106]) by hub.freebsd.org (Postfix) with ESMTP id 6AEBF154F9 for ; Fri, 31 Dec 1999 11:03:25 -0800 (PST) (envelope-from zeus@tetronsoftware.com) Received: from tetron02.tetronsoftware.com (zeus@tetron02.tetronsoftware.com [208.236.46.106]) by tetron02.tetronsoftware.com (8.9.3/8.9.3) with ESMTP id NAA01054; Fri, 31 Dec 1999 13:06:11 -0600 (CST) (envelope-from zeus@tetronsoftware.com) Date: Fri, 31 Dec 1999 13:06:11 -0600 (CST) From: Gene Harris To: Jeff Lush Cc: freebsd-questions@FreeBSD.ORG Subject: Re: NATD question In-Reply-To: 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 Fri, 31 Dec 1999, Jeff Lush wrote: > Hello, > > In the rc.conf: > - > ifconfig_de0="inet 139.142.150.39 netmask 255.255.255.0" > ifconfig_de0_alias="inet 139.162.150.39 netmask 255.255.255.0" You might want to change your netmask to 255.255.255.255 for an aliased ip. > natd_program="/bin/natd -redirect_address 192.168.1.1 139.162.150.29" I have successfully done this with -redirect_port, the command being "-redirect_port 192.168.1.1:smtp 139:162.150.29:smtp" This will redirect any incomming traffic to port 25 (smtp) to your mail server. It is up to you, but you might not want to pass all incomming traffic to your internal machine. I believe there is no need to risk passing any unexpected traffic. HTH, Gene To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message