• 6 Posts
  • 463 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle
  • IsoKiero@sopuli.xyztoSelfhosted@lemmy.world•Not to flex, but...
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 day ago
    # free -m
                   total        used        free      shared  buff/cache   available
    Mem:          257597      240278       14675          60        5884       17318
    
    

    ZFS ARC is fun. But so are SAS SSDs

    # zpool list -v Svalbard
    NAME                         SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
    Svalbard                    27.9T  11.5T  16.4T        -         -    19%    41%  1.00x    ONLINE  -
      raidz2-0                  27.9T  11.5T  16.4T        -         -    19%  41.2%      -    ONLINE
        scsi-35002538b0064b3f0  3.49T      -      -        -         -      -      -      -    ONLINE
        scsi-35002538b0064af50  3.49T      -      -        -         -      -      -      -    ONLINE
        scsi-35002538b0064aea0  3.49T      -      -        -         -      -      -      -    ONLINE
        scsi-35002538b0064af40  3.49T      -      -        -         -      -      -      -    ONLINE
        scsi-35002538b0064b3e0  3.49T      -      -        -         -      -      -      -    ONLINE
        scsi-35002538b0064af70  3.49T      -      -        -         -      -      -      -    ONLINE
        scsi-35002538b0064af00  3.49T      -      -        -         -      -      -      -    ONLINE
        scsi-35002538b0064aec0  3.49T      -      -        -         -      -      -      -    ONLINE
    

    But as others have mentioned, you don’t really need that amount of capacity to get started. I was very lucky on office dumpster pile, so might as well use what I got, but I could manage with far fewer resources if needed. Also that thing eats ~150W of power 24/7, so my electricity company is happy, but I have electric heating and sauna anyways so it doesn’t really matter in total consumption as the whole house peaks easily over 10kW at times.


  • On my end wireguard runs on mikrotik router with public IP address + dyndns. Another end is on proxmox server at friends setup which forwards traffic from PBS running on a VM, which might not be the best practice but it works just fine. I have separate physical box running PBS which is accessible via wireguard tunnel.

    Locally my PBS is in a detached garage and it backs up every VM on my proxmox setup nightly and it then syncs to PBS running on friends server. Friends proxmox runs nightly backups straight to my PBS. Permissions are managed on PBS with namespaces and separate user accounts. Everything on PBS servers is encrypted, but we trust eachother enough to have root access on everything, so it’s more for physical security.

    We don’t run full sync on everything offsite, just for the things that really need it. Nextcloud, immich, openmediavault and things like that with irreplaceable data on them. And incremental backups are amazing. In total there’s something around 6TB of data to back up and initial sync took quite some time, but now it’s about an hour every night to sync changes.

    Recovering from a bad hardware failure would take few days, but on our case it doesn’t really matter as the most important thing is that the data is safe even if it might be unavailable for some time.


  • First run of backups completed earlier this week between my servers and friends setup. Both of us run proxmox backup servers, wireguard tunnel manages routing in between and now we both have offsite backups. Saved few euros for both of us since external cloud services aren’t necessary anymore.

    Minifocus: Not quite plug’n’play, but setting up frigate connectivity to home assistant was pretty simple. Now I can do fun automations like ‘turn on outdoor lights when there’s a car moving on our driveway’. No idea if that’s really useful in practice, but at least it’s fun for me to set up things like that and see machines do their thing.

    Also I threw together one vm for nginx proxy manager and another for dockers. SearXNG works surprisingly well and setting it up was pretty simple.

    Next step would be to replace one minipc with a bit beefier one (i3, 8GB RAM -> i5, 16GB RAM) and set up a HA clustering between proxmox hosts. That might not be that useful in the real world either on my setup, but it’s a hobby, so everything doesn’t need to make perfect sense.



  • It happens every now and then. Support personnel claims that they are not blocking your address/IP even after you send them the message Microsoft servers send where it clearly states that your IP is blocked. Then you wrestle with the support for few emails, the problem magically goes away (which M$ support claims was never there) and then it comes back after few months or even few years.

    They (as a company) are just being assholes, there’s no technical reason nor explanation. And that’s one of the reasons more and more people should self-host and complain loudly every time they’re blocked without any particular reason.


  • Go for it. More people should. I’m running postfix+dovecot combo on a VPS running Debian.

    As others have already mentioned, you’ll need a server with static public IP address and a way to change DNS PTR record for it, so in practice for majority of people that means a VPS from (preferably) a reputable vendor. Then you’ll need to set up DNS records for your domain, MX and SPF are sufficient. DKIM and DMARC are nice to have, but not strictly speaking needed, at least for now.

    When configuring your SMTP service make sure that no one other than intended users can send mail trough it. That’s pretty much the most important thing if you want to stay out of blocklists. You’ll still end up in a few and it needs some manual work to resolve, but the longer you run your own server the fewer false positives there will be.

    Some will suggest mailcow or some other ‘all in a box’ service. They very likely work and may even work better than good’ol postfix, but I’d still recommend postfix (or exim, if you lean that way) because they really teach you the ropes and also they support maildir format for mailbox storage which makes it pretty trivial to move and backup stuff between installations as needed.

    When you get the setup running make absolutely sure your backups are in order. Email is so important for a lot of things that losing your inbox may be a costly mistake. Also set up some sort of server monitoring so that you’ll get alerts if something is not right. Email is pretty resilient, it can easily handle couple of hours downtime from a server, but the longer your downtime is the more you risk of lost emails (senders will get a notification that delivery failed, but it’s up to them to react for it).

    There’s a handful of different parts to figure out, but nothing is really that difficult. Sure, you’ll need to understand how email works under the hood and the whole stack is more complex than throwing a jellyfin docker image on your personal server but it’s very much doable. Have fun!




  • That’s a quote from The Internet Society. Here’s another quote from the same source:

    According to Charles Herzfeld, ARPA Director (1965–1967):

    The ARPANET was not started to create a Command and Control System that would survive a nuclear attack, as many now claim. To build such a system was, clearly, a major military need, but it was not ARPA’s mission to do this; in fact, we would have been severely criticized had we tried. Rather, the ARPANET came out of our frustration that there were only a limited number of large, powerful research computers in the country, and that many research investigators, who should have access to them, were geographically separated from them.

    ARPANET, like the modern internet, were and are pretty resilient on the network level and one of the major components why it’s still working today is that it can route around problems. However, it absolutely needs to have a pretty thick forest for the routing to work and thus it’s not really viable for military as they generally don’t have the time nor resources to build such networks on the battlefield.

    Switching network theory does come from RAND, but that’s more or less it. ARPANET founders didn’t have nuclear threat in mind when designing their network.

    Obviously today we’ve drifted away from such resilience as half a dozen companies manage majority of everyday things on the net, but the underlying network is still pretty good and centralization of services is a story for another day.


  • So, if you pointed a light at that probe, it would take one day for the light to reach it.

    And you’ll need a pretty beefy flashlight for the light to reach Voyager. I read somewhere that NASA needs to adjust radio signal for doppler effect and redshift. If you just send signal from Earth at the frequency Voyager is listening it would be lost to space well before it reaches the probe. Pretty neat.




  • There’s been rumours about insufficient capacity on Microsoft cloud services around Europe for a while. Unofficial of course, and who knows how many “broken phones” has been on the chain before me, so don’t take that as a fact. However, Microsoft stated that the problem started when they increased capacity, so maybe some initial synchronization or load balancing starting up caused extra load on the servers already running on pretty much full load and caused cascading failure.

    Of course I don’t know for sure and I don’t expect we’ll get a full technical brief with details and the main reason is management problems no matter what’s the technical cause. I hope at least someone wearing a suit starts to think that maybe cloud isn’t really the answer to everything. And it’s not just 3654, a shit ton of different cloud services relies on AWS, Cloudflare and other players and if any of those goes down they’ll take considerable chunk of business critical infrastructure with them.


  • I do excactly this too. My personal domain has been around since 2008 and my setup has a few domains from friends too. I’m running ispconfig to manage the whole mess and it’s really not that difficult. Getting your server removed from blocklists every now and then is annoying but at least my emails aren’t feeding some marketing machine and, at least for the last 24 hours, my service availability is better than Microsoft can do.


  • Stalwart and other similar projects might be decent to use, but they lack one detail which is a deal-breaker for me: maildir format for storage. It’s really easy to move between installations and even between different servers, easy and efficient to back up, doesn’t require any fancy databases or anything to be in order and it just works. Sure, it might need few megabytes more memory and search times might be couple milliseconds longer but it just works. My personal maildir has been around from at least 2008 and it’s moved around between servers multiple times without any hiccups ever.


  • Is this a problem or does it not matter

    It’s not a problem, but it does matter. With plain HTTP traffic everything you send and receive from a given site is unencrypted, so anyone in the chain delivering your package can read what you’re doing, collect your passwords and do all kinds of shenanigans. If it’s just your local network which is secured from the public internet then it’s pretty much just you who can intercept that traffic and it’s generally fine, as you already have all the passwords and such. And if you connect to the services via VPN that takes care of ‘secured from public interenet’ -part of the equation.

    HTTPS is the same traffic, but encrypted with certificates. To achieve that you’ll need to have a server certificate and then browsers can use the public part of certificate to encrypt your traffic. With docker that’s commonly achieved either with docker-proxy or external proxy like nginx. Your computer already has a bunch of certificate authorities which it trusts and they are bundled in your operating system and/or browser. Without a trusted certificate your browser throws a warning about it, but if you proceed with ‘untrusted’ certificate the traffic will still be just as strongly encrypted as it would be with a ‘known’ certificate. The catch is that anyone can create their own certificates, so there’s no guarantee if the server actually is what it claims to be. For example I could sign my own certificate for gmail.com and offer that to users and steal their passwords. That would of course be trivial to figure out as the browser wouldn’t show the “good” lock symbol on address bar, but the certificate would be technically speaking a working certificate.

    Now, to get a certificate for your own services you need to either build your own certificate authority and add that to trusted list of your devices or obtain a certificate from a already known authority like letsencrypt. With letsencrypt (and other similar services) you need to provide a proof that you own a domain which you’re obtaining the certificate for, so with those you can’t get a certificate for gmail.com or any other random domain name. Letsencrypt uses ‘certbot’ tool to validate certs, other services ask for spesific DNS entry or something else for proof that the domain is actually yours. But the main part is that all the ‘commonly known’ certificate authorities work only on publicly available services and domains (a bit simplified explanation, but that’s roughly it).

    But once you have the certificate you’ll need to configure something on your network to use it. Actual best practice and configuration depends on the service you’re running. If your services run only on your local network and they are never allowed to public internet you’re likely fine to run everything without HTTPS encryption, but it’s still good to understand the differences and effects between unencrypted and encrypted traffic.