Cameron Hutchison wrote:
Bob wrote:
Bob wrote:
Is there such a thing?
When my firewall / dhcp server / ntp server gets a fresh IP address
from my ISP the ntp daemon stops responding to requests.
Is the silence because it's a stupid question or because there isn't
a preferred work around for this?
How does your firewall get its IP address?
If it is by PPP then you can scripts in /etc/ppp/ip-{up,down}.d to start
and stop the ntp daemon. This should get triggered when a new IP
address
is negotiated.
Via DHCP, the ADSL 'modem' (D-link DSL-320T) passes it's wan IP
address onto the client, and when it doesn't have one it gives you
192.168.1.2 with a 30 second lease so you get connected within that
time when the link coming up, and if the link doesn't come up then
your logs fill up instead.
Check the man page for pppd(8) and search for ip-up to see the details
of how it's used, but just dropping scripts in those directories should
be sufficient.
I wonder if it's possible to persuade the dhcp client to run a script?
Thanks for you response.