Development discussion of WireGuard
 help / color / mirror / Atom feed
* Server with multiple peers
@ 2019-03-30  0:45 Indro Fedrigo
  2019-04-05 15:30 ` Aaron Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Indro Fedrigo @ 2019-03-30  0:45 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 1918 bytes --]

Hi Jason,
I'm trying to create a server with multiple peers form a wgx.conf file :
[Interface]
PrivateKey = QKet8noQBbM14ipbUOzw28yoFikAze4uM55xY+uFVWg=
ListenPort = 10300

[Peer]
PublicKey = 9YI43pxPeCvs3twJdBs5cQyH6N7qkQuTv4LcMslxYT0=
Endpoint = 10.0.10.100:10200
AllowedIPs = 192.168.0.0/16
PersistentKeepalive = 25

[Peer]
PublicKey = sQfagzCndbDxclqBJpla1Yk9p23tJKI/UWmjn8xfhz0=AllowedIPs
Endpoint = 10.0.10.101:10200
AllowedIPs = 192.168.0.0/16
PersistentKeepalive = 25

[Peer]
PublicKey = r5CcRqfp+HQrHNAGr26S8VZpT1FBlJIR7k47J2lV/XY=
Endpoint = 10.0.10.102:10200
AllowedIPs = 192.168.0.0/16
PersistentKeepalive = 25

[Peer]
PublicKey = uLUB9pcIx7cfr2Xc5O9WeVuDfIKAgm0SHRGpmSftqRQ=
Endpoint = 10.0.10.103:10200
AllowedIPs = 192.168.0.0/16
PersistentKeepalive = 25

but doing :
# wg setconf wgx /etc/wireguard/wgx.conf
ip link set up dev wgx
and
# wg
this is what I get

interface: wgx
  public key: Gd+9z9ubyeuQHl1ijoBLaz1IKRZ67qriWeQnDkIBWFU=
  private key: (hidden)
  listening port: 10300

peer: 9YI43pxPeCvs3twJdBs5cQyH6N7qkQuTv4LcMslxYT0=
  endpoint: 10.0.10.100:10200
  allowed ips: (none)
  latest handshake: 49 seconds ago
  transfer: 308 B received, 924 B sent
  persistent keepalive: every 25 seconds

peer: sQfagzCndbDxclqBJpla1Yk9p23tJKI/UWmjn8xfhz0=
  endpoint: 10.0.10.101:10200
  allowed ips: (none)
  transfer: 0 B received, 7.80 KiB sent
  persistent keepalive: every 25 seconds

peer: r5CcRqfp+HQrHNAGr26S8VZpT1FBlJIR7k47J2lV/XY=
  endpoint: 10.0.10.102:10200
  allowed ips: (none)
  transfer: 0 B received, 7.80 KiB sent
  persistent keepalive: every 25 seconds

peer: uLUB9pcIx7cfr2Xc5O9WeVuDfIKAgm0SHRGpmSftqRQ=
  endpoint: 10.0.10.103:10200
  allowed ips: 192.168.0.0/16
  transfer: 0 B received, 7.80 KiB sent
  persistent keepalive: every 25 seconds


the parameter AllowedIPs seems to get set only for the last peer...
Any idea ?

Thanks for this great piece of software!

Indro Fedrigo

[-- Attachment #1.2: Type: text/html, Size: 2926 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

end of thread, other threads:[~2019-04-06 11:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-30  0:45 Server with multiple peers Indro Fedrigo
2019-04-05 15:30 ` Aaron Jones
2019-04-05 18:47   ` Varun Priolkar

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).