[Nut-upsuser] Question on simultaneous IPv4 and IPv6 "any address" listening

Jim Klimov jimklimov+nut at gmail.com
Sat Aug 5 12:42:26 BST 2023


Cheers all,

TL;DR version:

  I've recently found that at least on my test box the `LISTEN *` line had
only set up an IPv4 `0.0.0.0` listener but not an IPv6 `::0` listener for
`upsd`. In fact, at least on a "dual-stack" system, it seems impossible to
bind to both - so depending on binding order I either lose IPv6 or lose
IPv4 directly (but have it practically as IPv4-over-IPv6).

  Given that `LISTEN *` support is in fact not documented explicitly (I
think), I am inclined to define it as listening to "any" on whatever
address families are available and supported by the NUT build, and somehow
ensuring that to the best of our capability (technical puzzles exist - see
GitHub issue).

  Detailed musing and logs are posted in
https://github.com/networkupstools/nut/issues/2012

  Pro/Con ideas are welcome :)

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20230805/21b5cfc6/attachment.htm>


More information about the Nut-upsuser mailing list