Development discussion of WireGuard
 help / color / mirror / Atom feed
* Wireguard with Network Namespaces
@ 2020-06-02 18:18 Archit Pandey
  0 siblings, 0 replies; only message in thread
From: Archit Pandey @ 2020-06-02 18:18 UTC (permalink / raw)
  To: wireguard

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-17  7:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 18:18 Wireguard with Network Namespaces Archit Pandey

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