From owner-freebsd-questions Sat Nov 25 7: 2:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 821) id C479337B479; Sat, 25 Nov 2000 07:02:10 -0800 (PST) Date: Sat, 25 Nov 2000 07:02:10 -0800 From: "John W. De Boskey" To: Questions List Subject: ipfw fwd vs. natd redirect Message-ID: <20001125070210.A38070@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm looking at two variations to foward mail and web services from the firewall to the appropriate server hosts. Using natd and redirect, I have this working. However, I also want to see what the comparable setup using ipfw is. Unfortunately, I am unable to get this working. I have the following rule in place: ${fwcmd} add fwd ${mailip},25 log tcp from any to ${oip} 25 which produces the following log msg: ipfw: 1400 Forward to ${mailip}:25 TCP remothost:1587 firewallip:25 in via fxp0 a split second later, I get: ipfw: 1500 Divert 8668 TCP firewallip:25 remotehost:1587 out via fxp0 Could someone (if anyone) who is using 'ipfw fwd' please send me an example where this is working? Thanks, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message