Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Grant Haywood <mrgranthaywood@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: connection errors in container while wireguard is up
Date: Thu, 21 Jun 2018 17:31:51 -0700	[thread overview]
Message-ID: <CAPayrd5VfXza42ef1kVj+G54DmRswczVYAdnjXn9r34eAk4nNA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]

when running wireguard on a docker build host with a wg peer configured as
the default gateway ( AllowedIPs =  0.0.0.0/0 )
some (not all) networking connections during a docker build fail. this
occurs with pip installs and curl in some cases
an example curl error inside the container is:
OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to
repo.saltstack.com:443

I believe this only happens with some specific hosts
for example, I can curl http and https for google.com, but not
repo.saltstack.com from inside the container

wget also fails, for both http and https , and gives the following output
inside the container:
wget http://repo.saltstack.com
--2018-06-22 00:24:26--  http://repo.saltstack.com/
Resolving repo.saltstack.com (repo.saltstack.com)... 138.197.226.47,
2604:a880:400:d0::2:e001
Connecting to repo.saltstack.com (repo.saltstack.com)|138.197.226.47|:80...
connected.
HTTP request sent, awaiting response...

 wget https://repo.saltstack.com
--2018-06-22 00:24:39--  https://repo.saltstack.com/
Resolving repo.saltstack.com (repo.saltstack.com)... 138.197.226.47,
2604:a880:400:d0::2:e001
Connecting to repo.saltstack.com (repo.saltstack.com)|138.197.226.47|:443...
connected.

(Notice no "HTTP request sent" on the https request)

these same requests succeed on the same host when not run in the container.
these same requests succeed in the same container on the same host when
wireguard is down

does anyone have a suggestion for further debugging I could do to
understand whats happening?

[-- Attachment #2: Type: text/html, Size: 2476 bytes --]

                 reply	other threads:[~2018-06-22  0:27 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=CAPayrd5VfXza42ef1kVj+G54DmRswczVYAdnjXn9r34eAk4nNA@mail.gmail.com \
    --to=mrgranthaywood@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).