another 6 months are up so, details of @Martineau's WireGuard manager can be found here and @ZebMcKayhan's invaluable setup guide here. Following on from #938 in the second thread
Making a rule based on a device's ipv6 ip is going to be challenging, not just because it may have more than one, but using SLAAC, the default for IPv6 networks, these ips change over time. While IPv6 networks can use stateless or stateful DHCPv6, we would need to see how (if) these can be configured on Asus routers and what the pro/cons are, other than getting WireGuard to work.
Also if the ISP is providing dynamic IPV6, then presumably even with DHCP6 starting pool (and hence the device addresses) will need to change as the assigned subnet changes?
Would it be possible to identify a device by its MAC and then manage WireGuard traffic (IPv4 or IPV6) based on that?
For IPv4 (testing with OpenVPN) is was possible to add a fixed IP (in my case 192.168.3.1) to br0:1 (via the router's wan-start script), link that IP to the VPN and then add the same IP into Unbound as an assigned interface. This should replicate with WireGuard, but the question is how to bring in IPv6
* What would (should) be the equivalent address? ULA, link-local, does it matter?
* With IPv4 the address can be assigned as an alias on br0:1, with ipv6 attempting to assign to br0:1, will actually assign to br0, does this matter?
More testing coming up - any comments / suggestions / recommendations welcome
I suppose the good news is that leakless WireGuard is possible using the default device clients, so it ought to be soluble from the router - just a matter of how.
Just thinking out loudHaving only a single computer over vpn could prove difficult with ipv6. ideally you should make an ipv6 rule for the computer ip in wgm, but the device could have many ip, so use the right one (or all).
Regarding DNS it follows the same pattern in Policy mode. whenever the rules are working, so shall (hopefully) the DNS redirect as well. But device ipv6 could be changing and I dont know how to deal with that.
Or use Unbound with br0 IP and point everything there.
Making a rule based on a device's ipv6 ip is going to be challenging, not just because it may have more than one, but using SLAAC, the default for IPv6 networks, these ips change over time. While IPv6 networks can use stateless or stateful DHCPv6, we would need to see how (if) these can be configured on Asus routers and what the pro/cons are, other than getting WireGuard to work.
Also if the ISP is providing dynamic IPV6, then presumably even with DHCP6 starting pool (and hence the device addresses) will need to change as the assigned subnet changes?
Would it be possible to identify a device by its MAC and then manage WireGuard traffic (IPv4 or IPV6) based on that?
For IPv4 (testing with OpenVPN) is was possible to add a fixed IP (in my case 192.168.3.1) to br0:1 (via the router's wan-start script), link that IP to the VPN and then add the same IP into Unbound as an assigned interface. This should replicate with WireGuard, but the question is how to bring in IPv6
* What would (should) be the equivalent address? ULA, link-local, does it matter?
* With IPv4 the address can be assigned as an alias on br0:1, with ipv6 attempting to assign to br0:1, will actually assign to br0, does this matter?
More testing coming up - any comments / suggestions / recommendations welcome
I suppose the good news is that leakless WireGuard is possible using the default device clients, so it ought to be soluble from the router - just a matter of how.
Last edited: