From owner-freebsd-questions Fri May 24 10:56:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from postfix.ultradns.net (postfix.ultradns.net [204.74.100.40]) by hub.freebsd.org (Postfix) with ESMTP id 15FB137B406 for ; Fri, 24 May 2002 10:56:46 -0700 (PDT) Received: from localhost (localhost.ultradns.net [127.0.0.1]) by postfix.ultradns.net (Postfix) with ESMTP id 4F08E22F29; Fri, 24 May 2002 11:00:21 -0700 (PDT) Received: from ultra-exchange.UltraDNS.com (nat-external.ultradns.net [204.74.100.10]) by postfix.ultradns.net (Postfix) with ESMTP id 7F0B422E8F; Fri, 24 May 2002 11:00:18 -0700 (PDT) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: NATD on 4.5 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Fri, 24 May 2002 10:56:42 -0700 Message-ID: <3DBB075EEB95944492E127F2B9A96FAF5DD816@ultra-exchange.UltraDNS.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: NATD on 4.5 Thread-Index: AcIC62t18DwvytA5TeueNa0V0L5V9QAYG7rA From: "Patrick Soltani" To: "Mark-Nathaniel Weisman" , X-Virus-Scanned: by AMaViS perl-11 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 Put this line in your /etc/rc.conf file natd_flags=3D"-f /etc/natd.conf" then create a file /etc/natd.conf that has all the redirection you want = to do. All should work. Read the man pages on natd, it has some pointers on how the redirection = is implemented; link list I think, and its side effects. Regards, Patrick Soltani. > -----Original Message----- > From: Mark-Nathaniel Weisman [mailto:mark@outlander.us] > Sent: Thursday, May 23, 2002 11:22 PM > To: freebsd-questions@freebsd.org > Subject: NATD on 4.5 >=20 >=20 > on 5/23/02 9:31 PM, Lubomir Radev at lubomirr@sympatico.ca wrote: >=20 > Hello List; > I've got natd and ipfw setup on my 4.5 freeBSD box. I'm=20 > using the box as my > router/firewall from the public net to a web server on a=20 > class C network for > some protection. I've recompiled the kernel, and got=20 > everything working > except for one minor inconvenence; I can only route one port=20 > to an internal > box in rc.conf? The one port routing works, unless I (un-rem=20 > out) the lines > for the other ports: >=20 > natd_flags=3D"-redirect_port tcp 192.168.100.2:80 80" >=20 > These lines are commented out; > natd_flags=3D"-redirect_port tcp 192.168.100.2:443 443" > natd_flags=3D"-redirect_port tcp 192.168.100.2:21 21" >=20 > If I un-comment either of the lines directly above, then=20 > nothing works. Can > anyone help? >=20 >=20 > --=20 > His Servant, > Mark-Nathaniel Weisman > Webmaster > Infinite Visions Creations > Anchorage, AK > http://www.infinitevisions.ws > mark@infinitevisions.ws >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message