restarting natd
Doron Shmaryahu
doron at home.crc.co.za
Sat May 17 02:20:48 PDT 2003
You could use a basic shell script like this
#!/bin/sh
killall -9 natd
/sbin/natd -u -s -m -a xxx.xxx.xxx.xxx
don't forget to run it with a & at the end so it runs in the background this
way you don't get disconnected if you are doing it remotely
-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Chuck Swiger
Sent: 16 May 2003 07:51 AM
Cc: freebsd-questions at freebsd.org
Subject: Re: restarting natd
Hugo Saro wrote:
> killall -TERM natd
>
> check if it's still running (might take some secs to
> die) - ps aux | grep natd
>
> if it ain't showing.. natd -f /path/to/conf
If you are connecting remotely, when you kill natd, you will lose your
shell and not be able to restart natd from where you are. Even if the
subway has gone back from $2.00 to $1.50, on-site visits take time. :-)
-Chuck
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list