Skip to content

Conversation

@stargieg
Copy link

@stargieg stargieg commented Feb 3, 2025

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

Description of Changes

Added uci option management_interface_family 'inet6'
Prefer ipv6 on new installations.
for IPv4 backward compatibility use "inet" or leave it blank. default prio is "inet" then "inet6"
For IPv4 only use "inet".
Added uci option management_interface_ula
If it set and there is no Public ipv6 than report ula address.

Please review it could broke backward compatibility

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nobody has ever expressed the need for this up to now, why do you think this is needed? Aren't most management VPN networks using IPv4?

@JFroch
Copy link

JFroch commented Jul 19, 2025

It is up for debate whether IPv6 should be the default returned address but this PR contains some pretty useful features regarding the IPv6 selection, such as the filtering of ula addresses and the option to prefer IPv6, when an interface also has an IPv4.

This enables the possibility to use IPv6 for management without the need for a VPN, one would just need to create a firewall rule (on the uplink router) that allows the OpenWISP server to access the relevant ports, given the devices and the server have a gua.

@stargieg
Copy link
Author

The Server should also ipv6 enabled.

openwisp2_nginx_ipv6: false

https://github.com/openwisp/ansible-openwisp2/blob/8ef0e8ea7f52bedd6286b48ae9e1bcb9e57183f5/defaults/main.yml#L58

@nemesifier
Copy link
Member

The Server should also ipv6 enabled.

openwisp2_nginx_ipv6: false

I have seen users in the past having problems due to this: nginx not starting because they didn't have IPv6.
Unfortunately a recurring issue with openwisp is that there's a good amount of users who have problems installing it.
Therefore, that setting in the server has been changed to facilitate installation for new users. It's still possible to enable IPv6, but trust me, I am seeing many deployments which do not care at all about it, they're not using IPv6 at all.

stargieg added a commit to stargieg/ansible-openwisp2 that referenced this pull request Nov 1, 2025
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

Successfully merging this pull request may close these issues.

3 participants