Development discussion of WireGuard
 help / color / mirror / Atom feed
* Multiple peers to one wireguard "server"
@ 2017-05-29 20:31 Ibrahim Tachijian
  2017-05-29 20:43 ` Bzzzz
  2017-05-29 20:54 ` Jason A. Donenfeld
  0 siblings, 2 replies; 4+ messages in thread
From: Ibrahim Tachijian @ 2017-05-29 20:31 UTC (permalink / raw)
  To: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

If I understand correctly if I need to connect 10 different wg "clients" to
one wg "server" I will require one wgX interface per-client on the "server".

Is this correct? Does this mean also that each wgX interface on the
"server" needs to listen on its own UDP port or can the "server" reuse the
same UDP port?

Thanks,
-- 
*Ibrahim Tachijian*

CEO Net Sat AB
Mobile: +46723321377
barhom@netsat.se

_________________________


*Net Sat ABC/O Jayway AB*Klara Östra Kyrkogata 2B, 1TR, 111 52 Stockholm,
Sweden
Office: +46 (0)8 408 394 53

[-- Attachment #2: Type: text/html, Size: 1592 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple peers to one wireguard "server"
  2017-05-29 20:31 Multiple peers to one wireguard "server" Ibrahim Tachijian
@ 2017-05-29 20:43 ` Bzzzz
  2017-05-29 20:54 ` Jason A. Donenfeld
  1 sibling, 0 replies; 4+ messages in thread
From: Bzzzz @ 2017-05-29 20:43 UTC (permalink / raw)
  To: Ibrahim Tachijian; +Cc: WireGuard mailing list

On Mon, 29 May 2017 20:31:36 +0000
Ibrahim Tachijian <barhom@netsat.se> wrote:

> If I understand correctly if I need to connect 10 different wg
> "clients" to one wg "server" I will require one wgX interface
> per-client on the "server".
> 
> Is this correct?

No, it means you'll have wg0 and 10 [Peer] sections into your server
configuration file.

Jean-Yves

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple peers to one wireguard "server"
  2017-05-29 20:31 Multiple peers to one wireguard "server" Ibrahim Tachijian
  2017-05-29 20:43 ` Bzzzz
@ 2017-05-29 20:54 ` Jason A. Donenfeld
  2017-05-29 20:59   ` Ibrahim Tachijian
  1 sibling, 1 reply; 4+ messages in thread
From: Jason A. Donenfeld @ 2017-05-29 20:54 UTC (permalink / raw)
  To: Ibrahim Tachijian; +Cc: WireGuard mailing list

Hi Ibrahim,

On Mon, May 29, 2017 at 10:31 PM, Ibrahim Tachijian <barhom@netsat.se> wrote:
> If I understand correctly if I need to connect 10 different wg "clients" to
> one wg "server" I will require one wgX interface per-client on the "server".
>
> Is this correct? Does this mean also that each wgX interface on the "server"
> needs to listen on its own UDP port or can the "server" reuse the same UDP
> port?

No. Each WireGuard interface may have multiple peers:

           [Interface]
           PrivateKey = yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=
           ListenPort = 51820

           [Peer]
           PublicKey = xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=
           Endpoint = 192.95.5.67:1234
           AllowedIPs = 10.192.122.3/32, 10.192.124.1/24

           [Peer]
           PublicKey = TrMvSoP4jYQlY6RIzBgbssQqY3vxI2Pi+y71lOWWXX0=
           Endpoint = [2607:5300:60:6b0::c05f:543]:2468
           AllowedIPs = 10.192.122.4/32, 192.168.0.0/16

           [Peer]
           PublicKey = gN65BkIKy1eCE9pP1wdc8ROUtkHLF2PfAqYdyYBz6EA=
           Endpoint = test.wireguard.io:18981
           AllowedIPs = 10.10.10.230/32

Please see the man page wg(8) or the front page of the website --
www.wireguard.io -- for more details.

Regards,
Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple peers to one wireguard "server"
  2017-05-29 20:54 ` Jason A. Donenfeld
@ 2017-05-29 20:59   ` Ibrahim Tachijian
  0 siblings, 0 replies; 4+ messages in thread
From: Ibrahim Tachijian @ 2017-05-29 20:59 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]

Yes of course, bad of me to have missed having multiple peers in one config
file.
Thank you for your help.

On Mon, May 29, 2017 at 10:54 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hi Ibrahim,
>
> On Mon, May 29, 2017 at 10:31 PM, Ibrahim Tachijian <barhom@netsat.se>
> wrote:
> > If I understand correctly if I need to connect 10 different wg "clients"
> to
> > one wg "server" I will require one wgX interface per-client on the
> "server".
> >
> > Is this correct? Does this mean also that each wgX interface on the
> "server"
> > needs to listen on its own UDP port or can the "server" reuse the same
> UDP
> > port?
>
> No. Each WireGuard interface may have multiple peers:
>
>            [Interface]
>            PrivateKey = yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=
>            ListenPort = 51820
>
>            [Peer]
>            PublicKey = xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=
>            Endpoint = 192.95.5.67:1234
>            AllowedIPs = 10.192.122.3/32, 10.192.124.1/24
>
>            [Peer]
>            PublicKey = TrMvSoP4jYQlY6RIzBgbssQqY3vxI2Pi+y71lOWWXX0=
>            Endpoint = [2607:5300:60:6b0::c05f:543]:2468
>            AllowedIPs = 10.192.122.4/32, 192.168.0.0/16
>
>            [Peer]
>            PublicKey = gN65BkIKy1eCE9pP1wdc8ROUtkHLF2PfAqYdyYBz6EA=
>            Endpoint = test.wireguard.io:18981
>            AllowedIPs = 10.10.10.230/32
>
> Please see the man page wg(8) or the front page of the website --
> www.wireguard.io -- for more details.
>
> Regards,
> Jason
>
-- 
*Ibrahim Tachijian*

CEO Net Sat AB
Mobile: +46723321377
barhom@netsat.se

_________________________


*Net Sat ABC/O Jayway AB*Klara Östra Kyrkogata 2B, 1TR, 111 52 Stockholm,
Sweden
Office: +46 (0)8 408 394 53

[-- Attachment #2: Type: text/html, Size: 3835 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-29 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-29 20:31 Multiple peers to one wireguard "server" Ibrahim Tachijian
2017-05-29 20:43 ` Bzzzz
2017-05-29 20:54 ` Jason A. Donenfeld
2017-05-29 20:59   ` Ibrahim Tachijian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).