OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: bebef on December 23, 2018, 09:24:42 am

Title: IPv6: How to restart services for dynamic prefix on tracked interfaces?
Post by: bebef on December 23, 2018, 09:24:42 am
Hi everyone!

I have a /56 on my WAN which gets changed by the provider on each connection or at latest every 24h. I have a setup where my internal interfaces track the WAN for IPv6 assignments, which works well enough.

However, the IPv6 of each internal interface obviously changes with each change on the WAN. That will cause dnsmasq not to respond to DNS queries any more (on the new IPv6). Also, I'm not 100% sure that DHCP would advertise the correct IPv6 for dnsmasq after the change.

Restarting fixes things, so the question is: how can I restart services like dnsmasq (and potentially other services like DHCP) on IPv6 address changes on interfaces?

Cheers
Title: Re: IPv6: How to restart services for dynamic prefix on tracked interfaces?
Post by: GDixon on December 23, 2018, 11:33:08 am
Thats an odd one, My provider (spectrum) has yet to change my IPv6 ip and they have been the same for the last 4 months.
I also use a /56 and track the wan.
Maybe try dhcp instead of tracking and assign your internal lan a range of ip's?
Title: Re: IPv6: How to restart services for dynamic prefix on tracked interfaces?
Post by: Waschbuesch on March 01, 2019, 12:22:48 am
I have the same situation as bebef. My provider (m-net) only offers dynamic IPv6 addresses that seem to change once per day so I would also need the dns resolver (unbound in my case) to restart once the the address changes. How could this be accomplished?
I guess I could try to time a cronjob with the time of address change, but the proper thing would be to have the address change trigger this.