From owner-freebsd-stable Tue Jan 4 22:41:26 2000 Delivered-To: freebsd-stable@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 1F9AC151AC for ; Tue, 4 Jan 2000 22:41:25 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.9.3/8.9.3) with ESMTP id WAA03164; Tue, 4 Jan 2000 22:41:22 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Tue, 4 Jan 2000 22:41:22 -0800 (PST) From: Doug White To: rayw@tomail.com.tw Cc: freebsd-stable@FreeBSD.ORG Subject: Re: help about nat's redirect_port In-Reply-To: <20000105041124.58932.qmail@ms1.tomail.com.tw> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 5 Jan 2000 rayw@tomail.com.tw wrote: > my nat is working file , but i can't use redirect_port . Is > somebody can tell me the detail config about redirect_port . A sample entry may help: redirect_port tcp bond:ident ident tcp = protocol to redirect bond = internal host to direct to ident = port number to redirect (first one is the port on the internal box to hit, the second is the port on the external side to expose.) I found that I kept forgetting the protocol (tcp). the -f option to natd is really handy for keeping complex configs in order, btw. After one redirect_port maintaining the flags in rc.conf becomes a pain. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message