-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I'm not entirely sure if this exists in the project so wanted to reach out to verify. I did notice a few PRs that address IPv6 support but it wasn't super clear if I needed to do something different with my setup to have this working. Currently, I'm trying to mimic bringing up an interface using this config:
[Interface]
Address = 10.0.0.3/32,fd00::4/128
PrivateKey = <private_key>
DNS = 192.168.100.10
[Peer]
PublicKey = <public_key>
PresharedKey = <preshared_key>
Endpoint = <endpoint>
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25I noticed that the InterfaceConfiguration struct expects only a string for the address field, so trying something like address: "10.0.0.3/32,fd00::4/128".to_string() will not parse correctly. I also tried using the assign_address method on the WireguardInterfaceApi struct but that doesn't seem to work either. It seems like the second approach does add the IP to the interface as expected, but no traffic is routed and it seems like only the IPv4 address is found when checking against my public address. I'd be happy to share a code snippet if needed but I wasn't able to find any really clear documentation on this so figured I'd ask. Thank you in advance!