mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
- When the WireGuard interface on the client lacks IPv6 address, it is possible that the IPv6 traffic leaks and goes directly to Internet instead of via FreedomBox. Fix this by adding IPv6 address on the FreedomBox. - If the FreedomBox fails to forward IPv6 traffic, then the client will be incapable using IPv6. This is better than leaking IPv6 traffic. - In the form to add WireGuard server configuration, allow providing IPv6 address along with IPv4 address. Mullvad VPN provides such configuration. - Don't provide IPv6 address for DNS server. Querying via IPv4 is sufficient for both A (IPv4) queries and AAAA (IPv6) queries. Providing two different IPs (one IPv4 and one IPv6 for the same DNS server) is not better then providing just one IP address. - Add DNS server information in the show client page. Tests: - Unit and functional tests work. - When WireGuard app is installed and server is started, the app page shows IPv4 and IPv6 addresses of the server. - After auto-adding client, the downloaded configuration contains two IP allowed addresses for the client. The configuration details also contain this information. DNS address information is correct. - Show client page shows multiple allowed IPs for the client. Multiple IPs for the server. DNS server is also shown. - When adding a server configuration, multiple IPs (one IPv4 and one IPv6) can be provided. - When adding clients, next free IP addresses for IPv4 and IPv6 are allocated as expected. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>