Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2022 19:00:03 +1000
From:      Peter Jeremy <peterj@freebsd.org>
To:        Martin Stiemerling <mls.ietf@gmail.com>
Cc:        "net@freebsd.org" <net@freebsd.org>
Subject:   Re: Notification of change of IP address/Routing etc
Message-ID:  <Yw8jE0nVBqVYOR7M@server.rulingia.com>
In-Reply-To: <67E19935-B868-4BFB-A9FF-9CD9A5547343@gmail.com>
References:  <67E19935-B868-4BFB-A9FF-9CD9A5547343@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--nXi5zVjcbyiPcsLQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2022-Aug-31 10:18:44 +0200, Martin Stiemerling <mls.ietf@gmail.com> wrot=
e:
>I am looking for a mechanism to get a notification from the OS when, for i=
nstance, an IP address on an interface or a routing entry is being changed.=
=20

Assuming you are using the base OS version of dhclient, you could use
/etc/dhclient-exit-hooks, which is a shellscript documented in
dhclient-script(8).

--=20
Peter Jeremy

--nXi5zVjcbyiPcsLQ
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmMPIw5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF
QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi
CzRIPhAAj0FGu1ETMbU0Emgv1ubQMfXxAZy1yurQQHyjQBwPflX8tVDRDCnt93Ar
BHf8p8s787QXdGRoVB4wou/qKWjho31hD+r4Otj/M/6dvN7+KtwaJ/Z+BP4VqpfD
5Uf6LneYT0Av7Iy08fyatd/QCzkPFgU0Fe4odU/Azt0A8S0PFqWGJX5IwKZgNZ9o
uunqgPxKPtVWNQcKhQ3mnW0w3CTwhjwV6Aoxf2gLHOS8ylSrpgdY12hg1py/LN8G
NvZKgkoNXYYsotdnmjaiaG1Bj2MK6LUZdbg8j/d+SjCsQ8ShTzw99LeL1Wyqt48T
6TyF1lHHoWrmGxALVz7GF1lNjdeIoIRE21k8YWSGWi7HMSUpsaw2SILCAJIHtNdT
2uvA22NC3S7NKl2Q5YkBBrAs3kyJedb+Utu/Pu3wgh9Rq+Z3pyF9LcEq0R87iAiW
xoxN7K0UsfJgrzyfZbOPiUCggeBGcgkl/UNIOA0/lwxcCYpDEiXB23qJe4sE39JX
sOnJh72bSwUYz6hEmk10OFH26H0BKP9TPP/GAuTyjoKZDr8pYCSZm2jIc/DN0xBS
0//2fh5aLrjlx5gHaD8hNp+UOjJdWeS57YP1bKlSib4PPQJVG+5RFBV3tfvqLa22
ZDuMruHoPqMHcEWpcc5pYQRzVP/cd4ad1WYQ0q+IlLfvkKd8YXM=
=MEa5
-----END PGP SIGNATURE-----

--nXi5zVjcbyiPcsLQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Yw8jE0nVBqVYOR7M>