From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 13:42:36 2003 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 EBD9037B401 for ; Wed, 9 Apr 2003 13:42:36 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB79043FB1 for ; Wed, 9 Apr 2003 13:42:35 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003040920423500100ohhk3e>; Wed, 9 Apr 2003 20:42:35 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h39KgZXf062095; Wed, 9 Apr 2003 16:42:35 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h39KgR83062018; Wed, 9 Apr 2003 16:42:27 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: "abdul" References: <004101c2fde2$eb932340$ea640180@abdul> From: Lowell Gilbert Date: 09 Apr 2003 16:42:27 -0400 In-Reply-To: <004101c2fde2$eb932340$ea640180@abdul> Message-ID: <44istnv1vw.fsf@be-well.ilk.org> Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: -redirect_port problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 20:42:37 -0000 "abdul" writes: > I use a FreeBSD box (version 4.7) as my Internet Proxy machine. I presently use the natd daemon to redirect all HTTP > > traffic to our web server and POP/SMTP to our mail server. This works well. A portion of my rc.conf file is: > > natd_program="/sbin/natd" # path to natd, if you want a different one. > natd_enable="YES" # Enable natd (if firewall_enable == YES). > natd_interface="tl0" # Public interface or IPaddress to use. > natd_flags=" -redirect_port tcp 128.1.100.139:80 207.241.164.30:80 -redirect_port tcp 128.1.100.6:25 25 -redirect_port > > tcp 128.1.100.6:110 110 -redirect_port tc > p 128.1.100.7:80 80 " > > My Problem > > In addition to what I have above, I want to redirect all HTTP traffic from a particular external server (a public IP) to port > > 8080 of a local machine for our mobile banking software. So I modified my rc.conf as follows: > > natd_flags=" -redirect_port tcp 128.1.100.139:8080 207.241.164.30:80 -redirect_port tcp 128.1.100.6:25 25 > > -redirect_port tcp 128.1.100.6:110 110 -redirect_port tcp 128.1.100.7:80 80 " # > I have confirmed that can locally browse to the HTTP based software running on the local machine in question > > (128.1.100.139). > > I will appreciate any help. Your message is hard to understand, partly because it is badly formatted. The real trouble, though, is that you don't describe what actually happens when you try to use the port redirection. [Remember, of course, that the redirection will only work from *outside* your network.]