marci

joined 2 years ago
 

Hi selfhosting community! At the moment I have my services set up with nix. They store their data on a btrfs subvolume which I can easily snapshot.

For backup I configured btrbk to send the snapshots to a target pc. However I feel uneasy not knowing if the backups succeeded or not. Right now I would need to check manually on the target machine every so often.

How are you guys handling this problem? Custom scripts for btrfs send/receive? Is there a function in btrbk I overlooked where I can verify the state and get notified of problems?

I was looking into ntfy-sh, which looks optimal, but how can I know if the send/receive was successful?

[–] marci@lemmy.world 1 points 2 days ago

I configured Adguard now as the ipv6 dns server in the fritzbox as well. For now it seems to work, under settings > network & internet > network details for my home network it shows the right dns addresses now. Thanks!

[–] marci@lemmy.world 1 points 2 days ago

Yes no matter if it works or not, it always returns the tailscale ip I configured with cloudflare, saying it is using 8.8.8.8 as the dns server.

[–] marci@lemmy.world 1 points 5 days ago (4 children)

I disabled private dns and it seemed to work yesterday, but today i can not connect to my services again. Any other ideas on how to pin down the issue?

 

I have some services set up which i make available with tailscale and a domain name outside my lan. Inside my home network i set up adguard dns rewrites to use the same domain for devices which are not on my tailnet. I disabled dns rebind protection in my fritzbox for these domains.

Now my problem: I don't leave my phone connected to tailscale all of the time because of high battery drain. Inside of my wifi the phone should still be able to access my services using the domain, but it is only able some of the time. My work laptop (not on my tailnet) is able to access the services.

Is the dns cached somehow in android? Is the private dns setting of android overwriting the dns i configured in my router? Where else could the problem lie? Any hints are appreciated :)

[–] marci@lemmy.world 10 points 7 months ago

I found that the cname record seemed to be the problem. Here someone had the same issue. After changing now to a wildcard A record pointing to the tailscale ip, it all magically works. Thanks for all the answers!

[–] marci@lemmy.world 1 points 7 months ago

Yes, correct. So far I was able to access the services via : on any device in my tailnet.

[–] marci@lemmy.world 1 points 8 months ago

I don't have a problem to always be on the tailnet with my client devices, but it does not work even for this case.

[–] marci@lemmy.world 0 points 8 months ago (1 children)

Yes, similar to the video guide, I set up a wildcard CNAME record to point to ..net.

 

Hi selfhosting community :)

I am hosting some services on a NixOS box (Immich, Nextcloud and some others). So far I had no problem reaching my services, just via tailscale when I am not at home.

But now I wanted to branch out and get a little fancy with https setup and a domain, so I can share my services with friends. I followed this guide and got a domain at cloudflare. However I ran into some problems.

The relevant setup:

spoilerNextcloud:

services.nextcloud = {
  enable = true;
  hostName = "nextcloud.<mydomain>.com";
  https = true;
};

Nginx:

services.nginx = {
  enable = true;
  virtualHosts = {
    "nextcloud.<mydomain>.com" = {
      forceSSL = true;
      useACMEHost = "<mydomain>.com";
    };
    "immich.<mydomain>.com" = {
      forceSSL = true;
      useACMEHost = "<mydomain>.com";
      locations."/".proxyPass = "http://127.0.0.1:2283/";
    };
    "immich.<machine>.<tailnet>.net" = {
      locations."/".proxyPass = "http://127.0.0.1:2283/";
    };
  };
};

ACME

security.acme = {
  acceptTerms = true;   
  defaults.email = "my@mail.com";
  certs."<mydomain>.com" = { 
    domain = "*.<mydomain>.com";
    group = "nginx";
    dnsProvider = "cloudflare";
    dnsPropagationCheck = true;
    credentialsFile = config.sops.secrets.cloudflare.path;
  }; 
};


My situation now is the following:

  • I can reach eg. Immich by going to http://..net:2283 (https is not working here).
  • I can not reach Immich by the domains I have setup in my Nginx configuration. So "immich...net" & "immich..com" give a "Server not found" error. I tried both 127.0.0.1 and the tailscale IP of the server in the proxyPass section.

Does one of you network wizards know where the problem lies? Or how would I go about troubleshooting the issue?