From: Indro Fedrigo <indro.fedrigo@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: Server with multiple peers
Date: Fri, 29 Mar 2019 17:45:23 -0700 [thread overview]
Message-ID: <CAAJTE62-YTQ_3Kuii7T2z4-aOr5FrrOGF7WgxVnZaY6mu0XuPA@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2019-04-05 15:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-30 0:45 Indro Fedrigo [this message]
2019-04-05 15:30 ` Aaron Jones
2019-04-05 18:47 ` Varun Priolkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAJTE62-YTQ_3Kuii7T2z4-aOr5FrrOGF7WgxVnZaY6mu0XuPA@mail.gmail.com \
--to=indro.fedrigo@gmail.com \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).