From: David K. <da...@ke...> - 2023-09-26 15:24:18
|
Lonnie, Yes indeed. Lapse of memory on my part, this is indeed something I changed. Rather than use a statically defined ULA I query the internal interface to see what IPv6 address(s) is/are assigned... which could be a ULA or a GUA or both and set them into /etc/hosts pbx ~ # interface=br0 pbx ~ # ip_list=$(ip -6 -o addr show dev $interface scope global 2>/dev/null | sed -n -r -e 's/.*inet6 *([0-9a-fA-F:]+).*$/\1/p') I need to fix this in my own branch. Thanks David On Tue, Sep 26, 2023 at 11:09 AM Lonnie Abelbeck <li...@lo...> wrote: > Hi David, > > I looked at my setup to refresh my memory, the only IPv6 address in my > /etc/hosts (not manually defined under Network -> {Configure DNS Hosts} ) > is INTIPV6 which is defined in the Network tab. > > In my case all internal IPv6 addresses are 'fd' ULA addresses, mapped with > the "Network Prefix Translation" firewall plugin. > > I don't see any case where /etc/hosts entries are derived from realtime > 'ip addr ...' values. > > Possibly some of your IPv6 enhancements may have changed this in your > "develop" branch. > > Bottom line, if a GUA IPv6 address in entered in the Network -> Internal > Interfaces or Network -> {Configure DNS Hosts} that would cause issues if > the GUA prefix changes. > > I'm a big fan of internal ULA IPv6 addresses, mapped with the "Network > Prefix Translation". [1] > > Lonnie > > [1] https://doc.astlinux-project.org/userdoc:tt_ipv6_ula_nptv6_config > > > > > On Sep 26, 2023, at 8:31 AM, David Kerr <Da...@Ke...> wrote: > > > > Comcast went down on me again overnight. It did not recover on its own, > I had to reset the cable modem. Astlinux handled it well with one > exception, on recovery I noticed that DHCPv6 had delegated me a new /60 > subnet... different from before. It is in fact the first time comcast has > changed the IPv6 delegated subnet for me ever. So in abundance of caution > I went and grep'd to see if I had hardcoded the old /60 subnet somewhere. > > > > All I found was the /etc/hosts file that was not updated so the IPv6 > address for "pbx" on the local LAN was set using the old subnet. > > > > This is set by /etc/init.d/network and also /etc/init.d/dnsmasq > > > > It feels like dnsmasq should be restarted if the external network > interface goes down and then comes back up. This may be done already (have > not researched that) but the setting of /etc/hosts is done in the "init" > part of the code, not the "start" part of the code, so a "restart" is not > good enough. I manually ran a service dnsmasq stop followed by service > dnsmasq init and that rebuilt the hosts file. But could this be done > automatically? > > > > Thanks > > David. > > _______________________________________________ > > Astlinux-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > |