From owner-freebsd-questions@FreeBSD.ORG Mon Jan 2 03:24:52 2006 Return-Path: X-Original-To: questions@freebsd.org 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 2074516A420 for ; Mon, 2 Jan 2006 03:24:52 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from skippyii.compar.com (cistore.compar.com [216.208.38.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4127043D48 for ; Mon, 2 Jan 2006 03:24:38 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (CPE00062566c7bb-CM0011e6ede298.cpe.net.cable.rogers.com [70.28.254.189]) by skippyii.compar.com (8.13.1/8.13.1) with ESMTP id k023PuWK054025; Sun, 1 Jan 2006 22:25:56 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <007801c60f4c$2f7d4db0$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: "Laurence Sanford" , References: <43B896A1.1010005@wilderness.homeip.net> Date: Sun, 1 Jan 2006 22:25:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Cc: Subject: Re: natd -redirect_port question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2006 03:24:52 -0000 > I have natd set up on a 4.10 box to get the rest of my network on the > internet. I have an application that requires connections to be able to > be established on a specific port. The problem is, sometimes I run this > app on system A and sometimes on system B. The port stays the same. So > in my rc.conf I have included in natd_flags -redirect_port tcp > systemA:port port ; currently if I want to use the app on system B I'm > having to reboot the natd box. Obviously this seems silly, however, I've > found that trying to reset this information using a command line like: > natd -n dc0 -redirect_port systemB:port port results in an errror > stating redirect can't bind to that port, because it's already in use. > I'm convinced I'm overlooking an easy way to change this redirect on the > fly without having to reboot the natd box. Anyone care to point me the > right direction? Thanks in advance. If you already have natd running, then you need to stop it first before starting it up again. -- Matt Emmerton