Sure, here's an example configuration for peering two VPS using Wireguard:
### Configuration for VPS 1
Code:
[Interface]
Address = 10.0.0.1/24
PrivateKey = <private_key_1>
[Peer]
PublicKey = <public_key_2>
Endpoint = <vps_2_ip>:51820
AllowedIPs = 10.0.0.2/32
PersistentKeepalive = 25
### Configuration for VPS 2
Code:
[Interface]
Address = 10.0.0.2/24
PrivateKey = <private_key_2>
[Peer]
PublicKey = <public_key_1>
Endpoint = <vps_1_ip>:51820
AllowedIPs = 10.0.0.1/32
PersistentKeepalive = 25
In the above configuration, replace
<vps_1_ip>
and
<vps_2_ip>
with the respective IP addresses of VPS 1 and VPS 2. Also, replace
<private_key_1>
and
<private_key_2>
with the private keys of VPS 1 and VPS 2 respectively.
After you have...