From owner-freebsd-questions Sat May 25 0:32:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta-2.gci.net (mta-2.gci.net [208.138.130.83]) by hub.freebsd.org (Postfix) with ESMTP id 1053C37B406 for ; Sat, 25 May 2002 00:32:37 -0700 (PDT) Received: from mmp-1.gci.net ([208.138.130.80]) by mta-2.gci.net (Netscape Messaging Server 4.15) with ESMTP id GWNOYA01.WFH for ; Fri, 24 May 2002 23:32:34 -0800 Received: from [24.237.13.187] ([24.237.13.187]) by mmp-1.gci.net (Netscape Messaging Server 4.15) with ESMTP id GWNOYA00.29H; Fri, 24 May 2002 23:32:34 -0800 User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Date: Fri, 24 May 2002 23:32:34 -0800 Subject: Re: NATD on 4.5 From: Mark-Nathaniel Weisman To: Patrick Soltani , Message-ID: In-Reply-To: <3DBB075EEB95944492E127F2B9A96FAF5DD816@ultra-exchange.UltraDNS.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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 on 5/24/02 9:56 AM, Patrick Soltani at psoltani@ultradns.com wrote: > Put this line in your /etc/rc.conf file > natd_flags="-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 >> >> >> 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 >> > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > In the additional file I create (natd.conf)? Do I then add everything that was in quotes? "-redirect_port tcp IPAddress:http 80" "-redirect_port tcp IPAddress:https 443" and so forth, until all the things I want routed are routed? -- 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