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

Trending Topics

Online now

Members online
1,082
Guests online
7,335
Total visitors
8,417

Forum statistics

Threads
2,338,890
Posts
29,306,277
Members
1,122,652
Latest member
ihave123
Back
Top