From owner-freebsd-questions Sat Feb 2 18:17:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dark.beer.net (dark.beer.net [64.32.181.242]) by hub.freebsd.org (Postfix) with ESMTP id 6405E37B41B for ; Sat, 2 Feb 2002 18:17:29 -0800 (PST) Received: (from glasgow@localhost) by dark.beer.net (8.9.3/8.9.3) id UAA08122 for freebsd-questions@FreeBSD.ORG; Sat, 2 Feb 2002 20:17:28 -0600 (CST) From: "M.G." Message-Id: <200202030217.UAA08122@dark.beer.net> Subject: redirecting port based on source ip To: freebsd-questions@FreeBSD.ORG Date: Sat, 2 Feb 2002 20:17:27 -0600 (CST) Reply-To: glasgow@beer.net X-Mailer: ELM [version 2.4ME+ PL54 (25)] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have two server processes (smtpd and ofmipd) running on my mail server. The smtpd process listens on 192.168.1.200 port 25, and the ofmipd processs listens on 127.0.0.1 port 25. Is there a way I can use natd/ipfw to redirect connections to the mail server from 192.168.1.0/24 and 172.16.4.0/24 to the ofmipd process transparently? I want connections from all other addresses to connect to the smtpd process as usual. Also, I do NOT need or want the normal natd functionality (I don't want anyone to be able to masquerade as the mail server by setting it as their default gateway.) -- Michael Glasgow To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message