Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 support requires manual config file tinkering #4

Open
Leseratte10 opened this issue Oct 19, 2024 · 1 comment
Open

IPv6 support requires manual config file tinkering #4

Leseratte10 opened this issue Oct 19, 2024 · 1 comment
Assignees

Comments

@Leseratte10
Copy link

Leseratte10 commented Oct 19, 2024

Currently, the config file at /etc/nut/upsd.conf just contains the one line "LISTEN 0.0.0.0", which makes the UPS service only listen on legacy IPv4.

I am running NUT 2.8.2. It looks like NUT 2.8.1 and above also support the statement "LISTEN *" (see here ) which will listen on both 0.0.0.0 and [::] so both IPv4 and IPv6 clients will be able to connect.

To still support the older NUT versions 2.8.0 and 2.7.4 which can still be selected from the version dropdown, it should also be possible to just add both listen statements ("LISTEN 0.0.0.0" and "LISTEN ::") to that same file.

I have not found a GUI settings toggle to enable IPv6 so I had to manually put "LISTEN *" into the config file using the Configuration Editor and restart the service.

Can this be changed for future versions so that IPv6 support is enabled by default? Should be enough to modify the default upsd.conf config file to do that.

@desertwitch
Copy link
Owner

Thanks for reporting this, it's a good point and I'll integrate this in the next update.

@desertwitch desertwitch self-assigned this Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants