Network Mode: Access Point: Web server via IPv6?

I meant, when the mode is ‘Access Point’. That issue was tackled in this thread …

Found some time to look into that:

uci set network.lan.ip6assign='0'
uci set network.lan.ipv6='1'
uci commit network

The first command disables the ula_prefix. The second command enables IPv6 for sure because the default value auto resulted into ‘odhcp6c[…]: Failed to send DHCPV6 message to ff02::1:2 (Permission denied)’ in the system log visible in LuCI.

Then, edit the file /etc/config/network to add

config interface 'lan6'
    option proto 'dhcpv6'
    option ifname '@lan'
    option reqprefix 'no'

The last option does the trick as explained in the OpenWrt Wiki for a LAN client. With all this, the first step – the modification of the file /etc/sysctl.conf shown – in the first post here in this thread is not needed anymore.

However, however, this ‘lan6’ is just a hack as well. On that interface the DHCPv6 client odhcp6c is started. That beast has a lot of issues as

  • it does not honor the flags in IPv6 Router Advertisements,
  • if there is no DHCPv6 server, odhcp6c continues to broadcast DHCPv6 packets, and
  • when the upstream router invalides a prefix, odhcp6c does not remove immediately. Instead it waits until the original lifetime expired.

@GL.iNet, please, partner up with CZ.NIC and their Turris OS because they face the same issues as you. Perhaps you both are able to fund bug fixes and/or find another DHCPv6 client like the WIDE-DHCPv6 client, which perhaps better suites the network mode ‘access point’. The current OpenWrt maintained DHCPv6 client odhcp6c is nice for the network mode ‘Router’ but not for in the mode ‘Access Point’ yet.