From owner-freebsd-questions Fri May 24 3:24:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from anchor-post-36.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.94]) by hub.freebsd.org (Postfix) with ESMTP id 67DDE37B400 for ; Fri, 24 May 2002 03:24:32 -0700 (PDT) Received: from mailgate.aphnet.co.uk ([62.49.140.130] helo=aph2k.aphinternal.aphnet.co.uk) by anchor-post-36.mail.demon.net with esmtp (Exim 3.35 #1) id 17BCEf-0005wZ-0a; Fri, 24 May 2002 11:23:49 +0100 Received: from aph2k ([62.49.140.130]) by aph2k.aphinternal.aphnet.co.uk with Microsoft SMTPSVC(5.0.2195.3779); Fri, 24 May 2002 11:25:55 +0100 Message-Id: <3.0.1.32.20020524112551.010135e8@aph2k> X-Sender: rob@aph2k X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Fri, 24 May 2002 11:25:51 +0100 To: Mark-Nathaniel Weisman , From: Rob O'Donnell Subject: Re: NATD on 4.5 In-Reply-To: References: <000901c202e4$44217e80$0201a8c0@HAL9000> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 24 May 2002 10:25:55.0187 (UTC) FILETIME=[63198430:01C2030D] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG rc.conf is read sequentially at boot, and isn't really parameters as such, so each natd_flags you define replaces the previous ones - only the last redirect in your example would work. you can either put all your redirects into one line, or, preferably, use the -f or -config flag to specify a file with them all in. man natd for the format. Rob. At 22:22 23/05/2002 -0800, Mark-Nathaniel Weisman wrote: >on 5/23/02 9:31 PM, Lubomir Radev at lubomirr@sympatico.ca wrote: > >Hello List; > I've got natd and ipfw setup on my 4.5 freeBSD box. I'm using the box as my >router/firewall from the public net to a web server on a class C network for >some protection. I've recompiled the kernel, and got everything working >except for one minor inconvenence; I can only route one port to an internal >box in rc.conf? The one port routing works, unless I (un-rem out) the lines >for the other ports: > >natd_flags="-redirect_port tcp 192.168.100.2:80 80" > >These lines are commented out; >natd_flags="-redirect_port tcp 192.168.100.2:443 443" >natd_flags="-redirect_port tcp 192.168.100.2:21 21" > >If I un-comment either of the lines directly above, then nothing works. Can >anyone help? > > >-- >His Servant, >Mark-Nathaniel Weisman >Webmaster >Infinite Visions Creations >Anchorage, AK >http://www.infinitevisions.ws >mark@infinitevisions.ws > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > -- APH Computers Ltd. Tel: 0161-442 2603 Fax: 0161-443 1162 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message