Name: S2StoSideBLOCALPublic Key: *REDACTED*Private Key: *REDACTED*Listen Port: 51825Tunnel Address: 192.168.0.1/24Peers: SideB
Name: S2StoSideBEndPointPublic Key: *REDACTED*Shared Secret: BlankAllowed IPs: 10.12.254.0/24 192.168.0.1/32Endpoint Address: <IP address of side B>Endpoint Port: Keepalive: 60
Name: S2StoSideALOCALPublic Key: *REDACTED*Private Key: *REDACTED*Listen Port: 51825Tunnel Address: 192.168.0.2/24Peers: SideB
Name: S2StoSideAEndPointPublic Key: *REDACTED*Shared Secret: BlankAllowed IPs: 10.13.254.0/24 192.168.0.2/32Endpoint Address: <IP address of side B>Endpoint Port: Keepalive: 60
root@router:~ # service wireguard start[#] ifconfig wg create name wg1[!] Missing WireGuard kernel support (ifconfig: SIOCIFCREATE2 (wg): Invalid argument). Falling back to slow userspace implementation.[#] wireguard-go wg1┌──────────────────────────────────────────────────────┐│ ││ Running wireguard-go is not required because this ││ kernel has first class support for WireGuard. For ││ information on installing the kernel module, ││ please visit: ││ https://www.wireguard.com/install/ ││ │└──────────────────────────────────────────────────────┘[#] wg setconf wg1 /dev/stdin[#] ifconfig wg1 inet 192.168.0.1/24 alias[#] ifconfig wg1 mtu 1420[#] ifconfig wg1 up[#] route -q -n add -inet 192.168.0.1/32 -interface wg1[#] rm -f /var/run/wireguard/wg1.sock
[Interface]PrivateKey = < REDACTED >Address = 10.64.12.1/24ListenPort = 51820[Peer]PublicKey = < REDACTED >Endpoint = < SIDE B WAN IP >:51820AllowedIPs = < Enter CIDRs of the networks at remote side >PersistentKeepalive = 60
[Interface]PrivateKey = < REDACTED >Address = 10.64.12.2/24ListenPort = 51820[Peer]PublicKey = < REDACTED >Endpoint = < SIDE A WAN IP >:51820AllowedIPs = < Enter CIDRs of the networks at remote side >PersistentKeepalive = 60