Api.minecraftservices.com not letting me curl/connect to it from a container when wireguard is up

when wireguard is off, container can connect fine, when wireguard is up, i can only connect to it from outside a container but not inside, every other website ive tried works
46 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by progamingdk#0
ProGamingDk
ProGamingDkOP2y ago
first time trying out wireguard /root # curl -v https://api.minecraftservices.com/ -o saved % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 13.107.246.63:443... Connected to api.minecraftservices.com (13.107.246.63) port 443 ALPN: curl offers h2,http/1.1 } [5 bytes data] TLSv1.3 (OUT), TLS handshake, Client hello (1): } [512 bytes data] CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:02:06 --:--:-- 0* Recv failure: Connection reset by peer OpenSSL SSL_connect: Connection reset by peer in connection to api.minecraftservices.com:443 0 0 0 0 0 0 0 0 --:--:-- 0:02:06 --:--:-- 0 response from inside a container while wireguard is up (wireguard is going from hetzner dedi to ovh vps) (if i try and join the server the server does get the connection, but i get kicked because of authentication servers are unavailable)
ProGamingDk
ProGamingDkOP2y ago
https://mclo.gs/Ru5VO3a a working curl inside the container, also while wireguard is up
mclo.gs
Unknown Log [#Ru5VO3a]
70 lines
ProGamingDk
ProGamingDkOP2y ago
if anyone needs more info feel free to ask (its also not able to download mojang jars while its up)
Discount Milk
Discount Milk2y ago
Have you done a pcap to see where it gets denied at? Might help
ProGamingDk
ProGamingDkOP2y ago
will do when i attempt the setup again, decided to revert some of the changes to go for a scheduled maintenance tomorrow or sunday. Thanks for the reply (all the wireguard stuff is still there, just modified the ips pterodactyl was using etc etc, makes for a easy resetup)
Admincraft Meta
For safety reasons we do not allow executables to be sent as they might contain malware. If you're compiling for someone please DM them and as a reminder. We cannot verify if a compiled jar has not been tampered in any way
ProGamingDk
ProGamingDkOP2y ago
i cant share .pcaps? sadge @Mortis 😦
ProGamingDk
ProGamingDkOP2y ago
rename to pcap instead of pcap2 pcap.pcap2 is one where wireguard is down (works) pcap2.pcap2 is one where wireguard is up and it doesnt work it is?
Discount Milk
Discount Milk2y ago
I guess 172.17.0.2 is the local IP of your server @ProGamingDk ?
ProGamingDk
ProGamingDkOP2y ago
dockers ip pterodactyl uses 172.18.0.1
Discount Milk
Discount Milk2y ago
:NODDERS:
ProGamingDk
ProGamingDkOP2y ago
No description
Discount Milk
Discount Milk2y ago
could you get a pcap from your wireguard instance too?
ProGamingDk
ProGamingDkOP2y ago
the wireguard server? sure want me to listen to the wireguard interface or public?
Discount Milk
Discount Milk2y ago
Hmmmm Both
ProGamingDk
ProGamingDkOP2y ago
alright 2 sec
Discount Milk
Discount Milk2y ago
(Include a connection attempt too fyi)
ProGamingDk
ProGamingDkOP2y ago
sure, i can connect to the server, but get kicked due to authentication servers being down
Discount Milk
Discount Milk2y ago
Right yes I want to see where the connection attempt fails
ProGamingDk
ProGamingDkOP2y ago
sure mind if i dm em
Discount Milk
Discount Milk2y ago
kk ok i look when I can, need to go soon
ProGamingDk
ProGamingDkOP2y ago
sure np! thanks
Discount Milk
Discount Milk2y ago
From your public.pcap Check frames 4620 "Destination unreachable"
ProGamingDk
ProGamingDkOP2y ago
yeah, whats weird is that it works fine on the vps
ProGamingDk
ProGamingDkOP2y ago
No description
ProGamingDk
ProGamingDkOP2y ago
not sure what makes it only happen in containers while wireguard is up, but still works on all other sites ive tested, and works fully through terminal
Discount Milk
Discount Milk2y ago
Might be helpful?
Discount Milk
Discount Milk2y ago
Server Fault
Mysterious “fragmentation required” rejections from gateway VM
I've been troubleshooting a severe WAN speed issue. I fixed it, but for the benefit of others: Via WireShark, logging, and simplifying the config I narrowed it down to some strange behaviour from a
ProGamingDk
ProGamingDkOP2y ago
No description
ProGamingDk
ProGamingDkOP2y ago
could have something to do with it maybe?
No description
No description
ProGamingDk
ProGamingDkOP2y ago
(the mtu) 1420 is the mtu of the wg0 interface on both servers, but the mtu being 1500 for pterodactyl/docker might have something to do with it? but so does eno1 so its weird
Discount Milk
Discount Milk2y ago
And check your wireguard.pcap for
ip.addr == 13.107.246.45
ip.addr == 13.107.246.45
(Both, actually)
ProGamingDk
ProGamingDkOP2y ago
it was the mtu set it to 1440
Discount Milk
Discount Milk2y ago
POG
ProGamingDk
ProGamingDkOP2y ago
on the outwards pointing interface and its working i did have to disable all ipv6 but eh not a big issue
Discount Milk
Discount Milk2y ago
Nobody uses ipv6 anyways, no matter what @PresentMonkey says :p
ProGamingDk
ProGamingDkOP2y ago
well actually
Discount Milk
Discount Milk2y ago
Does @silent work in servers like this?
ProGamingDk
ProGamingDkOP2y ago
its being weird no errors anymore but authentication servers are apparently still down and id is null
PresentMonkey
PresentMonkey2y ago
...
ProGamingDk
ProGamingDkOP2y ago
works now! nvm just needed another reboot
Discount Milk
Discount Milk2y ago
<3
ProGamingDk
ProGamingDkOP2y ago
gonna be fun to see how 100 mbits handles mcho.st (speed limits of a ovh starter vps)

Did you find this page helpful?