@Martineau (or anyone else who might know) I recently managed to setup a cloud server (Oracle Free tier) and was planning on having it to access my lan from the outside (so, kind of hub & spoke) but when fiddling with this I saw my router eth0 have a public ipv6, so my infrastructure provider finally came through.
Anyhow, as there are not much places I have ipv6 support I better use my vps for ipv4 Endpoint but direct for ipv6 endpoint.
In order to get everything just the way I want it I simply created all config files by hand.
So I ended up with a config file intended for the router like this:
Code:
# Router - 192.168.100.1 aaff:a37f:fa75:100::1
[Interface]
PrivateKey = <Router private key>
Address = 192.168.100.1/24, aaff:a37f:fa75:100::1/64
ListenPort = <Router listen port>
# VPS - 192.168.100.2 (-192.168.100.127)
[Peer]
PublicKey = <VPS public key>
Endpoint = <VPS ipv4 Endpoint>:port
AllowedIPs = 192.168.100.0/25, aaff:a37f:fa75:100::/120
PersistentKeepalive = 25
# Phone (ipv6 direct only)
[Peer]
PublicKey = <Phone public key>
AllowedIPs = 192.168.100.128/32, aaff:a37f:fa75:100::128/128
Putting this file in the wireguard.d folder and import using type=server. Wgm complained about missing key files so I added them and all works beutifully.
However, being a complete novice on server setups I dont appear to see any of my server peers in wgm but they show under "wg show" command. I feel that I somehow missed a step. Should I have imported the devices as well? Does this mean the server import should only contain the [Interface] part. And put each [Peer] part under separate files and import these as type=device?
//Zeb