Hi, I have the following problem: I switched my local Minecraft server from Debian to NixOS. The MC server itself runs fine, and I can reach it via IPv4 and IPv6 on my local network. The SSL certificates from Let’s Encrypt and Nginx are also working on my local network, just like on the old Debian server. I port-forwarded the server on my router exactly as I did for my old server, but the server is not reachable from outside. (I only have an external IPv6 address because I’m behind a CG-NAT from my ISP). My old server is reachable without any problem, but my NixOS server is not. I don’t understand this behavior. Do you have any ideas about what I might have configured incorrectly? Here is my config:
networking = {
networkmanager = {
enable = true;
dns = "default";
};
enableIPv6 = true;
hostName = "NixOS-Server";
interfaces = {
enp0s18 = {
ipv4.addresses = [ {
address = "10.75.0.22";
prefixLength = 24;
} ];
};
};
useDHCP = false;
};
services.nginx = {
virtualHosts = {
"minecraft.mydomain.com" = {
forceSSL = true;
enableACME = true;
acmeRoot = null;
kTLS = true;
http2 = false;
locations."/" = {
proxyPass = "http://localhost:25565";
};
};
};
After some testing I also found out, that this behavior happens on every nixos installation. Also when I install a clean nixos with the installer and then install nginx or the mc server. It is reachable on my local network, but the portforwarding in my fritzbox does not work / is not reachable externaly.