❓ Help Peer 2 vps using Wireguard

Status
Not open for further replies.
Solution
🤖
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...
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 created these configurations, you can start the Wireguard service on both VPS and the two VPS should be connected to each other.
 
Solution
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 582
    Views
  • 1
    Participants
Last reply from:
Carlowski

Trending Topics

Online now

Members online
1,179
Guests online
15,339
Total visitors
16,518

Forum statistics

Threads
2,363,124
Posts
29,419,217
Members
1,053,562
Latest member
Thrince
Back
Top