Server with multiple peers

Indro Fedrigo indro.fedrigo at gmail.com
Sat Mar 30 01:45:23 CET 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20190329/cbf2f7e5/attachment-0001.html>


More information about the WireGuard mailing list