dhcpcd-discuss

Re: How do I reload Shorewall6 if the IPv6 changes

Sven Kirmess

Thu Feb 08 20:24:33 2018

On Fri, Feb 2, 2018 at 7:42 AM, Roy Marples <roy@xxxxxxxxxxxx> wrote:

> On 01/02/18 22:15, Sven Kirmess wrote:
>
>> On Thu, Feb 1, 2018 at 12:44 AM, Roy Marples <roy@xxxxxxxxxxxx <mailto:
>> roy@xxxxxxxxxxxx>> wrote:
>>
>>     Don't beat around the bush, just reload it on actions.
>>
>>     case "$reason" in
>>              INFORM6|BOUND6|RENEW6|REBIND6|REBOOT6) reload_shorewall;;
>>     esac
>>
>> That was what I was looking for, the correct list of actions. Thanks!
>>
>
> man page dhcpcd-run-hooks(8) is your friend.
>

I assumed that I also have to act on ROUTERADVERT because ppp0 gets its
IPv6 from a RA and not through the DHCPv6-PD, but they obviously happen a
bit to often to reload the firewall on.


>
> Reloading Shorwall takes 1 minute on my system. Are the hooks in
>> /libexec/dhcpcd-hooks guaranteed to only run one at a time? Or do I have to
>> add locking myself?
>>
>> And is it a problem for dhcpcd if one of the hook scripts runs for a
>> minute?
>>
>
> Nothing in dhcpcd is threaded and dhcpcd will block until the script is
> done.
> So this is only a problem for you if your lease lasts less than a minute.
>

Thanks!

Sven

References:
How do I reload Shorewall6 if the IPv6 changesSven Kirmess
Re: How do I reload Shorewall6 if the IPv6 changesRoy Marples
Re: How do I reload Shorewall6 if the IPv6 changesSven Kirmess
Re: How do I reload Shorewall6 if the IPv6 changesRoy Marples
Archive administrator: postmaster@marples.name