I’m trying to reverse proxy a Satisfactory server. I swear I was able to do it before but after nuking a setup I’m unable to get it working again.
4. Error messages and/or full log output:
Jan 20 18:19:08 caddy caddy[146]: {"level":"warn","ts":1674260348.1488008,"logger":"tls","msg":"stapling OCSP","error":"no OCSP stapling for [satisfactory.$DOMAIN]: no OCSP server specified in certificate","identifiers":["satisfactory.$DOMAIN"]}
Jan 20 18:19:08 caddy caddy[146]: {"level":"debug","ts":1674260348.14881,"logger":"tls.cache","msg":"added certificate to cache","subjects":["satisfactory.$DOMAIN"],"expiration":1674302526,"managed":true,"issuer_key":"local","hash":"6c6dc10649aac4cb54bfade29ff8f9803c21785a3cb8ab4a0eb5e1d1414a689c","cache_size":4,"cache_capacity":10000}
5. What I already tried:
Tried on both 443 and 80 for incoming traffic, as both are routed through Caddy. Also tried adding udp/ to the internal URL to no avail.
Please upgrade to the latest version of Caddy, v2.6.2
I don’t think this makes sense. HTTP over UDP is only a thing with HTTP/3, but Caddy’s proxy doesn’t support HTTP/3 yet (Caddy only handles it as a server, but not as a client to another upstream).
But are you sure this game server is actually HTTP and not some other TCP or UDP protocol?
You haven’t shown any relevant logs or evidence that show an actual problem. You just said
That doesn’t tell us anything about what might be the problem.
Since I have your ear, could you help me figure out why my json isn’t working? I’ve been trying to go through the documentation of the module but I think I’ve done something wrong.
It doesn’t appear to be working still. I’ve confirmed the port is right, but it’s still not letting me connect via satisfactory.eschbach.house through port 971 (which I’ve verified is forwarded in my firewall to Caddy).
Any extra thoughts before I just say “forget it” for now?
We’ll need more detail than “it’s not working”.
What’s in your logs? What behaviour are you seeing, exactly?
Why do you need a proxy, anyway? Why not just expose the game server publicly? The proxy isn’t giving you any benefit here, it doesn’t add any kind of security at all.
I don’t have a static IP, so instead of constantly updating my friends with whatever the new IP address is when it changes, it’s easier to just have a domain name.
Yeah, but I try to limit the number of ports I have open since I also host a few services in my server rack. If Caddy isn’t able to manage it then I guess I’ll do it that way while I find a different solution.
I don’t think the problem is with Caddy, I just think it’ll be hard to diagnose the issue because I don’t use caddy-l4 myself (I don’t have a usecase for it personally) and since you don’t have much experience with this stuff either, it’ll be hard to guide you through it without spending a lot more time and effort to figure it out.
I don’t think you need to worry about limiting the amount of ports you’re using. That’s not really a relevant metric. Each port can serve its own purpose.
Since it sounds like you’re only using this game server for a small group of friends, I don’t think you have much to worry about. If you were going to make this a public server (i.e. advertising that it exists in public discords or whatever), then you might have to worry about some less friendly people trying to find exploits in the game server’s logic to mess with it.