Date: Wed, 29 Aug 2001 14:12:32 +1000 From: Tony Landells <ahl@austclear.com.au> To: Jonathan Chen <jonathan.chen@itouch.co.nz> Cc: Matthew Emmerton <matt@gsicomp.on.ca>, freebsd-questions@FreeBSD.ORG Subject: Re: getting nat to refresh its rules Message-ID: <200108290412.OAA24181@tungsten.austclear.com.au> In-Reply-To: Message from Jonathan Chen <jonathan.chen@itouch.co.nz> of "Wed, 29 Aug 2001 16:01:58 %2B1200." <20010829160158.A21946@itouchnz.itouch>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ahl@austclear.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108290412.OAA24181>