From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 08:24:10 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 2C25037B404 for ; Tue, 8 Apr 2003 08:24:10 -0700 (PDT) Received: from citizensbankng.com (host-12-018.a.nigol.net.ng [217.117.12.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6510843F3F for ; Tue, 8 Apr 2003 08:23:56 -0700 (PDT) (envelope-from freebsd@citizensbankng.com) Received: from abdul ([128.1.100.234]) by citizensbankng.com (8.9.2/3.7W) with SMTP id QAA01439 for ; Tue, 8 Apr 2003 16:26:26 +0100 (WAT) Message-ID: <004101c2fde2$eb932340$ea640180@abdul> From: "abdul" To: Date: Tue, 8 Apr 2003 16:24:02 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: -redirect_port problem 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: Tue, 08 Apr 2003 15:24:10 -0000 I use a FreeBSD box (version 4.7) as my Internet Proxy machine. I = presently use the natd daemon to redirect all HTTP=20 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=3D"/sbin/natd" # path to natd, if you want a = different one. natd_enable=3D"YES" # Enable natd (if firewall_enable = =3D=3D YES). natd_interface=3D"tl0" # Public interface or IPaddress to = use. natd_flags=3D" -redirect_port tcp 128.1.100.139:80 207.241.164.30:80 = -redirect_port tcp 128.1.100.6:25 25 -redirect_port=20 tcp 128.1.100.6:110 110 -redirect_port tc p 128.1.100.7:80 80 " =20 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=20 8080 of a local machine for our mobile banking software. So I modified = my rc.conf as follows: natd_flags=3D" -redirect_port tcp 128.1.100.139:8080 207.241.164.30:80 = -redirect_port tcp 128.1.100.6:25 25=20 -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=20 (128.1.100.139). I will appreciate any help. Thanks