❓ 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
  • 559
    Views
  • 1
    Participants
Last reply from:
Carlowski

Trending Topics

Online now

Members online
402
Guests online
1,778
Total visitors
2,180

Forum statistics

Threads
2,314,549
Posts
29,178,761
Members
1,184,191
Latest member
scarekrow88
Back
Top