OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: cclloyd on September 06, 2021, 07:19:09 am

Title: Unsure what addresses to put in for all points
Post by: cclloyd on September 06, 2021, 07:19:09 am
I'm working on setting up WireGuard to tunnel between cloud VMs and my local network.  I'm unsure however as to what exactly Im supposed to put for some addresses.

OPNSense LAN address: 10.0.0.1/16
VM WAN address: X.X.X.X
VM desired LAN address: 10.0.1.42/16


Current VM wg0.conf

Code: [Select]
[Interface]
# set address to next address
Address = 10.0.1.42/16
ListenPort = 51820
PrivateKey = REDACTED
# I want it to use OPNSense for DNS to resolve internal names
DNS = 10.0.0.1



[Peer]
PublicKey = P9EmfDRcTCDxzjCDuXkPY8kBieWmx337zusMIqEUfTE=
Endpoint = vpn.example.com:51820
AllowedIPs = 10.0.0.0/16
PersistentKeepalive = 21


Attached is the OPNSense config.