From owner-freebsd-ipfw Tue Mar 26 14:21:35 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210]) by hub.freebsd.org (Postfix) with ESMTP id E85A637B416 for ; Tue, 26 Mar 2002 14:21:31 -0800 (PST) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id JAA93538; Wed, 27 Mar 2002 09:21:25 +1100 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (localhost [127.0.0.1]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id JAA12520; Wed, 27 Mar 2002 09:21:24 +1100 (EST) Message-Id: <200203262221.JAA12520@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: "Roger Helman" Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: FreeBSD 4.2 ipfw natd -- Port Forwarding? In-reply-to: Your message of Tue, 26 Mar 2002 09:03:37 -0700. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Mar 2002 09:21:24 +1100 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > natd -n rl0 -redirect_port tcp 192.168.1.21:1723 1723 > natd: Unable to bind divert socket.: Address already in use > natd_flags="" > 00100 divert 8668 ip from any to any via rl0 > 00200 allow ip from any to any > 00300 divert 1723 ip from any to any via rl0 > 65535 deny ip from any to any You are really, really confused about natd. You don't need to run it twice (you can't, that's why it's complaining), and you don't need the second divert rule. Remove the rule 300 and then add the "-redirect_port tcp 192.168.1.21:1723 1723" string to the natd_flags in rc.conf, and reboot. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message