From owner-freebsd-net@FreeBSD.ORG Wed Nov 3 01:16:18 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2469F16A4CF for ; Wed, 3 Nov 2004 01:16:18 +0000 (GMT) Received: from av15-2-sn4.m-sp.skanova.net (av15-2-sn4.m-sp.skanova.net [81.228.10.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B9D343D3F for ; Wed, 3 Nov 2004 01:16:17 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av15-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id 2798037E44; Wed, 3 Nov 2004 02:16:16 +0100 (CET) Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av15-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 119F237E42 for ; Wed, 3 Nov 2004 02:16:16 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with SMTP id DA56F37E44 for ; Wed, 3 Nov 2004 02:16:15 +0100 (CET) Received: (qmail 70971 invoked by uid 1001); 3 Nov 2004 01:16:15 -0000 Date: Wed, 3 Nov 2004 02:16:15 +0100 From: Erik Trulsson To: John Fox Message-ID: <20041103011615.GA68454@falcon.midgard.homeip.net> Mail-Followup-To: John Fox , freebsd-net@freebsd.org References: <20041103003630.GA51913@mind.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041103003630.GA51913@mind.net> User-Agent: Mutt/1.5.6i cc: freebsd-net@freebsd.org Subject: Re: Simple port forwarding question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 01:16:18 -0000 On Tue, Nov 02, 2004 at 04:36:30PM -0800, John Fox wrote: > Hi, folks. > > I'm experimenting, trying to setup a situation where connections > to port 25 on machine A are forwarded to port 25 on machine B. > I've read the ipfw manpage and it looks as though what I'm doing > is correct. > > > The IPFW rules on machine A are: > 00100 fwd machineB tcp from any to any 25 > 65535 allow ip from any to any > > And there is a sendmail listening on B's port 25. > > But when I telnet to machine A's port 25, all I get is > a perpetual "Trying" message that just sits there. Don't use "fwd" for this - it doesn't work that way (for one thing B is unlikely to handle an IP-packet that is still adressed to A.) Use natd and the '-redirect_port' option to natd instead - that works. -- Erik Trulsson ertr1013@student.uu.se