connection errors in container while wireguard is up

Grant Haywood mrgranthaywood at
Fri Jun 22 02:31:51 CEST 2018

when running wireguard on a docker build host with a wg peer configured as
the default gateway ( AllowedIPs = )
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

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

wget also fails, for both http and https , and gives the following output
inside the container:
--2018-06-22 00:24:26--
Resolving (,
Connecting to (||:80...
HTTP request sent, awaiting response...

--2018-06-22 00:24:39--
Resolving (,
Connecting to (||:443...

(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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the WireGuard mailing list