I am trying to setup VPN connections from multiple remote servers all running Wireguard. These connections should be directed to certain devices only, such that, for example, device X is directed through tunnel A while device Y is directed through tunnel B. I think something like iptables could do the job of filtering and redirecting each client to the correct endpoint (I'm happy to be corrected if there is a better/more efficient way to do it too).
The VPN provider is supplying config files in the form below:
Code: Select all
[Interface]
PrivateKey = PRIVATE_KEY_XXXXXXXX
Address = 11.22.33.44/24
DNS = 1.1.1.1, 1.0.0.1
[Peer]
PublicKey = PUBLIC_KEY_YYYYYYYYYY
PresharedKey = PRESHARED_KEY_ZZZZZZZZZZZ
Endpoint = 12.34.56.78:51820
AllowedIPs = 0.0.0.0/0, ::0/0
Thank you for any help you can provide.