From owner-freebsd-questions Tue Nov 23 0: 1:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pacific.int.topsecret.net (gill.apk.net [207.54.148.62]) by hub.freebsd.org (Postfix) with ESMTP id 311FD14ECF for ; Tue, 23 Nov 1999 00:00:07 -0800 (PST) (envelope-from gill@topsecret.net) Received: from localhost (gill@localhost) by pacific.int.topsecret.net (8.9.3/8.9.3) with ESMTP id MAA02906; Mon, 22 Nov 1999 12:12:07 -0500 (EST) (envelope-from gill@topsecret.net) X-Authentication-Warning: pacific.int.topsecret.net: gill owned process doing -bs Date: Mon, 22 Nov 1999 12:12:06 -0500 (EST) From: James Gill X-Sender: gill@pacific.int.topsecret.net To: Guy Helmer Cc: Capriotti , freebsd-questions@FreeBSD.ORG Subject: Re: NATd and redirect_port In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have been using lines in /etc/rc.natd to do this: redirect_port tcp 10.1.1.10:25 25 redirect_port udp 10.1.1.10:25 25 redirect_port tcp 10.1.1.10:110 110 redirect_port udp 10.1.1.10:110 110 (with some other lines like natd_enable, natd_interface, and natd_flags put up in rc.conf) am I doing it improperly? what/why is .../rc.d/nats.sh ? ->> ->> (called from .../rc.d/nats.sh during boot) ->> ->> natd -n ed1 -redirect_port 192.16.1.100:25 25 ->> natd -n ed1 -redirect_port 192.16.1.100:110 110 -> ->I believe both of these port redirections need to occur within the same ->natd process. I use a natd configuration file for my firewall, but ->perhaps you could keep everything on the command line like this: -> ->natd -n ed1 -redirect_port 192.168.1.100:25 25 -redirect_port \ -> 192.168.1.100:110 110 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message