HELP with SSL/CERT

Hi, i have installed pterodactyl panel and i'm facing some problems related to using an alias ip.
39 Replies
johNN
johNNOP7mo ago
For example i have here an web hosting page
johNN
johNNOP7mo ago
No description
johNN
johNNOP7mo ago
my alias is "uk.felipefogaca.dev" setup with node alrady also my node domain is this when trying to connect it
johNN
johNNOP7mo ago
goes with SSL protocol error
No description
johNN
johNNOP7mo ago
but if i use the vps ip + port, goes alright
No description
johNN
johNNOP7mo ago
i have only two dns setup, one for panel and one for node
johNN
johNNOP7mo ago
No description
johNN
johNNOP7mo ago
both with certificates done in the vps
No description
johNN
johNNOP7mo ago
ps.: the panel and node are installed in the same machine ps.: i tried to get some help with ptero members in their discord and they have told me to go cloudflare discord for this
Chaika
Chaika7mo ago
I see this:
No description
Chaika
Chaika7mo ago
if it's unproxied blurring the IPs is useless as anyone can dns query to get them anyway and also unproxied means CF isn't in the middle/not the issue with ssl For me, the issue I see is that on the uk subdomain it's trying to use the panel certificate oh I didn't specify the port, https://uk.felipefogaca.dev:25569/ I just get connection refused regardless this would be an issue with your origin since it's unproxied, CF isn't in the middle, double check your configs
johNN
johNNOP7mo ago
thank you so much for the response actually for some reason my panel is with CF in the middle connected with SSL and everything but the node isnt collaborating hahah
Chaika
Chaika7mo ago
the panel subdomain doesn't have proxy enabled/cf in the middle nor uk you can tell by the "DNS only" proxy status, or from the end user point of view, if you do a dns lookup and see two CF IPs (ex: 104.x,172.x), or look at response headers and look for server: Cloudflare
Chaika
Chaika7mo ago
No description
Chaika
Chaika7mo ago
possible that you used to have them proxied and just now unproxied and your DNS Cache has you still going to Cloudflare though, if you had them proxied recently
johNN
johNNOP7mo ago
ive already flushed my dns cache and still nothing
Chaika
Chaika7mo ago
"still nothing" in what way? What are you looking for? Your origin has an actual misconfiguration and is serving the wrong tls certificate for port 443. For port 25569, it doesn't respond at all If you're seeing Cloudflare in the middle, clearing dns cache (and switching from your ISP's default resolver, they ignore cache ttl sometimes) could help get that issue out of the way
johNN
johNNOP7mo ago
i did a complete reinstall and re-certificate to make sure that isnt that the problem i still got the same problem with the panel installed again ive asked for someone that knows pterodactyl and he answered me this: "Automatic rewrites that are transforming all requests to https, regardless of the actual destination (TCP Port : 25565) the browser is being sent to HTTPS. Neither 443 or 80 are exposed and no SSL Certificate is being specified."
johNN
johNNOP7mo ago
i am using TLS on flexible and doesnt do much
No description
johNN
johNNOP7mo ago
i don't have any rules setup related to the domain just fresh recent bought domain from CF dns records still the same all pointed to the VPS
Chaika
Chaika7mo ago
None of those settings in CF matter as long as your dns records are dns-only and not proxied not automatic https rewrites, not encryption mode, etc Your origin, directly, is serving the wrong certificate for uk, it's serving panel That is an origin configuration error, in nginx it'd be a misconfiguration of the ssl cert. Not sure what pterodactyl uses but regardless it's something on the origin's end
johNN
johNNOP7mo ago
but both got their certs now
Chaika
Chaika7mo ago
That's for 80/443 at least. For the port 22569, it just doesn't respond. Cloudflare proxied wouldn't even work for 25569 because it's not a supported edge port
Chaika
Chaika7mo ago
on 443/https I still see this
No description
Chaika
Chaika7mo ago
even directly to the IP:25569 I just see this:
No description
johNN
johNNOP7mo ago
http://179.61.226.215:25565/ should work like http://uk.felipefogaca.dev:25565 also they are dockerized
johNN
johNNOP7mo ago
message from a friend:
No description
Chaika
Chaika7mo ago
that's a different port https://discord.com/channels/595317990191398933/1242856081013739620/1242856416121847908 above you shared 25569 that's 25565
johNN
johNNOP7mo ago
yeah because after the panel reinstall i had to create another instance
Chaika
Chaika7mo ago
ah ok, that was certainly some of the confusion. I see this error now
No description
johNN
johNNOP7mo ago
so the panel reallocate another port by automatic
Chaika
Chaika7mo ago
The reason why http://179.61.226.215:25565/ works and http://uk.felipefogaca.dev:25565/ doesn't is because all dev domains are forced HTTPS (secure). So you're constantly and forced redirected to https, which won't work with your origin which only supports http/plaintext
johNN
johNNOP7mo ago
i didnt know that damn
Chaika
Chaika7mo ago
If you use a headless client like Insomnia (a rest api tool) which doesn't respect dev forced https (called hsts preloading), you can see it does actually work on the domain
No description
Chaika
Chaika7mo ago
but browsers will always force https for all dev domains
johNN
johNNOP7mo ago
so technically to fix this error i need to change my domain extension "dev"
Chaika
Chaika7mo ago
no lol, just get a proper ssl certificate like from certbot/let's encrypt for free, and then setup your origin with that you already have one for uk do you not? You just need to configure your hastebin setup to use that. You could throw nginx in front and have it reverse proxy your container
johNN
johNNOP7mo ago
got it, thank you for your assistance! i didnt know some extensions force ssl by itself shouldve know that
Chaika
Chaika7mo ago
all the google ones do, forced hsts preloading
Want results from more Discord servers?
Add your server