wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Michael Brookes <mgsb81@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: multiple addresses in config and wg-quick
Date: Tue, 25 Jun 2019 17:55:58 +0100	[thread overview]
Message-ID: <CABfcST8_qGByfP1859xknPiiz0iT5krk6d53DoWT_LmqqwcpsQ@mail.gmail.com> (raw)

 hello

I've got a fundamental misunderstanding of a config with multiple
Addresses specified in the Interface section, or probably just
wireguard in general, or perhaps networking completely, for example my
wg0.conf

[Interface]
PrivateKey = <key>
Address = 10.19.49.103/24
Address = 10.88.118.166/16

[Peer]
PublicKey = FgVLScjX29jwnXXbHStFpNKcFqbaiNK6LuSWFglrWCo=
AllowedIPs = 172.18.1.0/24, 10.19.49.0/24
Endpoint = endpoint1:51820
PersistentKeepalive = 10

[Peer]
PublicKey = itXrReVj+wuecrSs+VNnEEkpc7wHb8QhXQtMQUBrOj8=
AllowedIPs = 172.27.0.0/16,10.88.0.0/16
Endpoint = endpoint2:51820
PersistentKeepalive = 25

I do wg-quick up /path/to/wg0.conf and I have a wg0 interface with
both addresses assign, the only thing is when I try to ping an address
in the ranges the second peer lists, for example 172.27.3.141, the
ping is just using the first address listed in the conf, so a tcpdump
of wg0 shows something like:

10.19.49.103 -> 172.27.3.141: : ICMP echo request
 and of course no reply, endpoint2 is getting the ping but it's coming
from 10.19.49.103 so no response.

Any help gratefully received.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

                 reply	other threads:[~2019-07-01  3:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CABfcST8_qGByfP1859xknPiiz0iT5krk6d53DoWT_LmqqwcpsQ@mail.gmail.com \
    --to=mgsb81@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).