Date: Wed, 3 Nov 2004 02:16:15 +0100 From: Erik Trulsson <ertr1013@student.uu.se> To: John Fox <readbsd@mind.net> Cc: freebsd-net@freebsd.org Subject: Re: Simple port forwarding question Message-ID: <20041103011615.GA68454@falcon.midgard.homeip.net> In-Reply-To: <20041103003630.GA51913@mind.net> References: <20041103003630.GA51913@mind.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041103011615.GA68454>