From owner-freebsd-questions@FreeBSD.ORG Mon Jan 19 12:37:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE06C16A4CE for ; Mon, 19 Jan 2004 12:37:14 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 679BC43D53 for ; Mon, 19 Jan 2004 12:37:11 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 10972 invoked from network); 19 Jan 2004 20:37:10 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 19 Jan 2004 20:37:10 -0000 Date: Mon, 19 Jan 2004 22:38:19 +0200 From: Ion-Mihai Tetcu To: "Shawn Guillemette" Message-Id: <20040119223819.77754934@it.buh.cameradicommercio.ro> In-Reply-To: <000801c3debf$839c3c40$6a01a8c0@tacstation> References: <000801c3debf$839c3c40$6a01a8c0@tacstation> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: port redirect X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2004 20:37:14 -0000 wrap please, tnx. On Mon, 19 Jan 2004 14:07:35 -0500 "Shawn Guillemette" wrote: > I have a freebsd machine set in place to do NAT for my local network. > I am now currently forwarding one port. I would like to forward > another port as well to the same address. This is what im using in > rc.conf to forward a single port to a single address. > > /sbin/natd -redirect_port tcp 192.168.1.106:XXXX XXXX -n sis0 > > where XXXX is the port number. > > > This also brings up another question. If was to find a need to port > forward to more then one address inside my netwrok. What would the > syntax look like. Something like: **buh*|>/home/itetcu# cat /etc/rc.conf | grep natd: natd_enable="YES" natd_flags="-f /etc/natd.conf -l -log_denied -m -u" **buh*|>/home/itetcu# cat /etc/natd.conf interface rl0 redirect_port tcp 192.168.0.10:80 80 redirect_port udp 192.168.0.13:110 110 log_ipfw_denied See natd(8) fro details. If you want to forward one port to more that one address, that is another question. -- IOnut Unregistered ;) FreeBSD user