From: Raoul Bhatia <raoul.bhatia@radarcs.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: Re: Wireguard connection lost between peers
Date: Wed, 12 May 2021 05:19:48 +0000 [thread overview]
Message-ID: <1CCB5519-611B-4377-97A9-0F9179E3C6F2@radarcs.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1541 bytes --]
Hi Jason
Apologies for taking some time to get back to you.
We tried to verify a few things and to see if we spot anything unusual,
and waited for a few mor instances to happen to get sufficient right data.
> That's surprising behavior. Thanks for debugging it. Can you see if
> you can reproduce with dynamic logging enabled? That'll give some
> useful information in dmesg:
>
> # modprobe wireguard && echo module wireguard +p >
> /sys/kernel/debug/dynamic_debug/control
I did enable the debug control and also set
sysctl -w net.core.message_cost=0
and have extracted a sample of the issue.
Please find it here https://nem3d.net/wireguard_20210512a.txt
From my observation, it is always the following symptoms:
1. Everything is WORKING:
LXC container d1-h sends handshake initiation.
Host wg0 receives, re-creates keypair, answers
d1-h receives, re-creates keypair, sends keepalive
wg0 receives keepalive
etc.
2. Somewhen it BREAKS
d1-h stopps hearing back after 15 seconds.
Initialization loop like mentioned above
d1-h stopps hearing back after 15 seconds.
etc.
As mentioned, the resolution is to dump the config,
remove the peer, and syncconf to restore.
This time, I used "nsenter -n" to apply this procedure to the
unprivileged container interface d1-h.
Lastly, we also saw similar behavior even between 2 physical hosts.
I will try to gather similar debug information.
Please let me know if further information is needed to
better understand the problem.
Raoul
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6069 bytes --]
next reply other threads:[~2021-05-12 20:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-12 5:19 Raoul Bhatia [this message]
2021-05-30 13:20 ` Raoul Bhatia
-- strict thread matches above, loose matches on Subject: below --
2021-04-29 10:30 Raoul Bhatia
2021-04-30 13:42 ` Jason A. Donenfeld
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=1CCB5519-611B-4377-97A9-0F9179E3C6F2@radarcs.com \
--to=raoul.bhatia@radarcs.com \
--cc=Jason@zx2c4.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).