From owner-freebsd-questions Tue Aug 28 21:12:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns2.austclear.com.au (ns2.austclear.com.au [192.43.185.70]) by hub.freebsd.org (Postfix) with ESMTP id C513237B401 for ; Tue, 28 Aug 2001 21:12:34 -0700 (PDT) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.166.65]) by ns2.austclear.com.au (8.11.2/8.11.3) with ESMTP id f7T4CW491122; Wed, 29 Aug 2001 14:12:32 +1000 (EST) (envelope-from ahl@austclear.com.au) Received: from tungsten (tungsten [192.168.166.65]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id OAA24181; Wed, 29 Aug 2001 14:12:32 +1000 (EST) Message-Id: <200108290412.OAA24181@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: Jonathan Chen Cc: Matthew Emmerton , freebsd-questions@FreeBSD.ORG Subject: Re: getting nat to refresh its rules In-Reply-To: Message from Jonathan Chen of "Wed, 29 Aug 2001 16:01:58 +1200." <20010829160158.A21946@itouchnz.itouch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Aug 2001 14:12:32 +1000 From: Tony Landells 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 jonathan.chen@itouch.co.nz said: > I tend to use a `kill -9 natd-pid && /sbin/natd -f ....'. I find that > if you don't use a `kill -9', natd hangs around just long enough to > not come up right-away. You may lose a few packets, though.. That would be because it deliberately does a slow shutdown: /* * Start timer to allow kernel gracefully * shutdown existing connections when system * is shut down. */ I guess that it wouldn't be too hard to add another signal handler so that would effectively be like sending sendmail a SIGHUP, where it effectively invokes itself again... I know I find it annoying typing: # kill natd-pid # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... natd: Unable to bind divert socket.: Address already in use # /sbin/natd -f ... # Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message