<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/etc/dhcp/dhclient-enter-hooks.d/99-run-user-hooks, branch current</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=current</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=current'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2023-11-11T10:00:34+00:00</updated>
<entry>
<title>dhclient: T5724: run user hooks using run_hookdir</title>
<updated>2023-11-11T10:00:34+00:00</updated>
<author>
<name>gavol</name>
<email>34028214+gavol@users.noreply.github.com</email>
</author>
<published>2023-11-11T10:00:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=645a0e768e27912a3f46d00de31d0fc79b6fd463'/>
<id>urn:sha1:645a0e768e27912a3f46d00de31d0fc79b6fd463</id>
<content type='text'>
User hooks are executed using run_hookdir (defined in the /sbin/dhclient-script script) instead of run-parts. That allows user hooks to modify variables set by the dhcp client (e.g., the new_routers variable to avoid the installation of the default routes).</content>
</entry>
<entry>
<title>T4997: add dhcp client user hooks</title>
<updated>2023-02-26T20:05:56+00:00</updated>
<author>
<name>bri</name>
<email>284789+b-@users.noreply.github.com</email>
</author>
<published>2023-02-26T20:05:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=40e0cb294e0377fdfe11171b35d78bd27e231df2'/>
<id>urn:sha1:40e0cb294e0377fdfe11171b35d78bd27e231df2</id>
<content type='text'>
This commit adds a script to run user-defined hook scripts upon renewing
a DHCP lease. This can be used to, for example, dynamically define a
firewall address-group based on the dynamic IP address of an interface.

For an example of its use (as well as the use case I had in mind while
coding this), see https://vyos.dev/T2196#142394

Co-authored-by: br &lt;git@ibeep.com&gt;</content>
</entry>
</feed>
