this post was submitted on 23 Dec 2023
1 points (100.0% liked)

WireGuard

3 readers
1 users here now

WireGuard - a fast, modern, secure VPN Tunnel.

founded 2 years ago
MODERATORS
 
This is an automated archive.

The original was posted on /r/wireguard by /u/Elmidea on 2023-12-23 20:34:11+00:00.


Hi,

First of all, I KNOW that my title is wrong.

My understanding is that Wireguard had no separate server and client, as everything is a peer for him, so I should be able to do both at the same time with no issue, right?

But here's the question, if my device (PC1) is connected "as a client" to a distant wireguard "server"(PC2), can I connect another computer (PC3) to PC1 at the same time? Or will it decline the connection, or maybe close the first one?

Thank you.

Here's more informations about my setup, not sure it's needed:

A) PC1 (raspberry pi 4, WG installed on RaspberryOS via pivpn script) => PC2 (distant VM, WG installed on Ubuntu via pivpn script) (This works already)

B) PC3 (same as PC1) => PC1 (my project), must be connected at the same time as A).

Will PC1 be able handle both at the same time?

Thank you!

EDIT: Apparently Wireguard can work with multiple simultaneous links at the same time, but do I need a different private key or the same one for PC3 to PC1 as the ones used from PC1 to PC2? kinda lost at this step.

EDIT2: It cant be as simple as create a second peer in the conf right?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here