Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Archit Pandey <architpandeynitk@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: Wireguard with Network Namespaces
Date: Tue, 2 Jun 2020 23:48:03 +0530	[thread overview]
Message-ID: <CANtWViMbVFtdz7VbH3+NWxRdkMUui5uHrbCOCw51bZYa__Qx9A@mail.gmail.com> (raw)

Hello all,

I'm trying to set-up a wireguard peer-to-peer test using namespaces as
the diagram below.

|--------------|            |----------|            |--------------|
| wg0, ns1 |----------| lo, ns0 |----------| wg1, ns2 |
|--------------|            |----------|            |--------------|

I'm unable to make ping work between the the two peers and get the
following error:

PING 192.168.241.1 (192.168.241.1) 56(84) bytes of data.
From 192.168.241.2 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: Destination address required
From 192.168.241.2 icmp_seq=2 Destination Host Unreachable
ping: sendmsg: Destination address required

Any ideas on what could be causing this?

The script I'm using to setup the test can be found here -
https://gist.github.com/archit-p/ad01f715c81f128b271400653d05e09f.

My configs are as follows:

--> client.conf
[Interface]
ListenPort = 1
PrivateKey = kJ0P5RK1/ihw9CKwwVBUzG1SzzBiu3jEuT50c14don4=

[Peer]
PublicKey = MsILnsNuioXMS9qSMn66eDgPEagABYKIQBHpUO+NED8=
AllowedIPs = 0.0.0.0/0,::/0
PreSharedKey = Du3JReQWNFjZJhhUHJzPXfARVNox2UNoVbf2ls4neco=

--> server.conf
[Interface]
ListenPort = 2
PrivateKey = mB6r7QG1zefLRJeYAVUrAa+uDJX/N2tkPqZYg1PRYFM=

[Peer]
PublicKey = 2iyuOB1Q0Yd9hPY4eK57LcejHeslx8LrR8vjmyem+nc=
AllowedIPs = 0.0.0.0/0,::/0
PreSharedKey = Du3JReQWNFjZJhhUHJzPXfARVNox2UNoVbf2ls4neco=

Thank you for help debugging the issue!

Archit.

                 reply	other threads:[~2020-06-17  7:47 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=CANtWViMbVFtdz7VbH3+NWxRdkMUui5uHrbCOCw51bZYa__Qx9A@mail.gmail.com \
    --to=architpandeynitk@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).