From owner-freebsd-questions Fri Mar 14 5:47:48 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A26CA37B401 for ; Fri, 14 Mar 2003 05:47:46 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEE5343F85 for ; Fri, 14 Mar 2003 05:47:45 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.7/8.12.7) with ESMTP id h2EDliTb008694; Fri, 14 Mar 2003 08:47:44 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E71DD46.2070207@potentialtech.com> Date: Fri, 14 Mar 2003 08:46:46 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dan@slightlystrange.org Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Port Forwarding FreeBSD 4.7_Release References: <20030314133504.GA709@catflap.home.slightlystrange.org> In-Reply-To: <20030314133504.GA709@catflap.home.slightlystrange.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Daniel Bye wrote: > On Fri, Mar 14, 2003 at 01:07:42PM +0000, Matthew Ryan wrote: > >>Thanks Dan >> >>Unfortunately that doesn't seem to work either. > > Rats! > >>I get this when I enter on the command line: >> >>natd -n ep0 -redirect_port tcp 192.168.1.241:xxxx xxxx >> >>natd: Unable to create divert socket.: Operation not permitted > > Silly question, I'm almost blushing to ask - you are running the command as > root, yes? Also ... are you sure that: a) You have your kernel configured with IPDIVERT? The GENERIC kernel does _not_. b) natd isn't already running with different options when you try to start it on the command line? >>and no results using the following in /etc/rc.conf: >> >>natd_flags="-n ep0 -redirect_port tcp 192.168.1.241:xxxx xxxx" >> >>By the way, the interface is specified already in /etc/rc.conf as >>follows?: >> >>natd_interface="ep0" This is redundant. You can remove the "-n ep0" from natd_flags. >>any other ideas? I don't know _whats_ wrong. But I've got this running in two places with no problems. It works just fine, and as far as I can see, the syntax you're using is correct, so I wouldn't focus on that. Let us know what you find when you check the suggestions I made ... I have other suggestions if those don't help. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message