Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MI
miau @lemmy.sdf.org
Posts 2
Comments 59
Help me harden my home server
  • Wow, thats very, very nice. I didnt know this even existed.

    But I suppose if it had widespread support it would be the perfect solution.

    Firefox mobile not supporting it might be a dealbreaker though, since it is the browser I use and the one I persuaded all my friends and family to switch to...

    But this is an incredibly interesting technology and I will surely look into implementing at least partially if that works.

    Thanks a lot for sharing!

  • Help me harden my home server
  • I didnt mention on my original post but I do have a virtual machine on gcp, which I use to run mongodb. I didnt mention it because I am not too concerned with it, but mostly it follows the same practices, with the exception being that ssh is open and it has no private data in it.

    But I suppose I could do something similiar to what you mentioned. The ideia of having and eating the cake is very nice. And if something goes wrong I could turn of public access and have the vpn still working.

    I will consider implementing something like that as well, thanks a lot for sharing your thoughts!

  • Help me harden my home server
  • Yes absolutely. For work most of my clients use cloudflare's different services so I understand they have credibility.

    For me though, part of the reason I self host is to get away from some big tech companies' grasp. But I understand I am a bit extreme at times.

    So thanks for opening my mind and pointing me to that very interesting discussion, as well as for sharing your setup, it sure seems to be very sound security wise.

  • Help me harden my home server
  • Thats a good point. Maybe I can get away with just temporary file sharing. So when someone wants something I can upload it to the server and send a link. I bet even nextcloud could do that.

    Still way less scary then having everything on the server all the time

  • Help me harden my home server
  • Id like to know as well. I definetely dont want to be the first person of that story tough

    Ive heard of someone who exposed the docker management port on the internet and woke up to malware running on their server. But thats of course not the same as web services.

  • Help me harden my home server
  • Oh, now I get what you mean, thanks for the explanation

    Yeah it makes sense, I had originally gone with onedrive for the much cheaper price but I will take a look into s3 compatible storage and consider migrating in the future.

  • Help me harden my home server
  • Thanks for your reply!

    Suggestion 1 definetely does make a lot of sense and I will be doing exactly that asap. Its something I didnt think through before but that would make me much more in peace.

    Suggestions 2-4 sound very reasonable, I have indeed searched for a way to self host a waf but didnt find much info. My only only concern with your points is... Cloudflare. From my understanding that would indeed add a lot of security to the whole setup but they would then be able to see everything going through my network, is that right?

  • Help me harden my home server
  • Been there, done that lol, my ISP doesnt change my IP half as much as I should like, and I renew my certs half as often as they deserve.

    Seriously though, I had certs expire twice until I finally decided to get this setup properly.

  • Help me harden my home server
  • I see, I appreciate you sharing your knowledge on the matter.

    Yeah I thoght about the spike in size, which I would definetely notice because the amount of data is pretty stable and I have limited cloud storage.

    Regarding your last point, I currently have everything under a user account: the data I am backing up, the applications and restic itself all run on the same user account. Would it be a good ideia to run restic as root? Or as a different service account?

  • Help me harden my home server
  • Thanks for replying!

    I do use dns challanges for renewing my certs. But I use port 443 for application data, not for certs.

    Is a vpn always safer then a reverse proxy? Do you use wireguard or do you have any other options worth looking into?

  • Help me harden my home server
  • I don't know much about ransomware but thats what got me concerned. I always assumed if I were to be infected, restic would just create a new snapshot for the files and Id be able to restore after nuking the server.

  • Help me harden my home server
  • Thanks a lot for your input. I honestly had not considered this possibility.

    Others in the post recommended removing those important files from the public facing server so that in the case of an attack they wouldnt be exposed. So I will try and follow this recommendation asap.

    But your answer still applies to everything else I will be hosting so I am concerned. I had no idea ransomware was this smart. I will research more about this topic, but basically if I access a file from two different servers and its fine it means the file is free from infection?

  • Help me harden my home server
  • Thats a good point, I hadnt thought about it before. I like the possibility of sharing these files in my intranet but I suppose you are right. Maybe I could use openwrt to split two networks, one for public stuff only, but my knowledge of networking is quite limited.

  • Help me harden my home server
  • That was a great answer, thank you so much!

    Yes I didnt even notice the family photos and docs dont need to be on that same server. Initially I just put them there to act as a local file share. But you are absolutely right, moving them from the public server is the best thing I can do to protect them.

    I will look into setting up a second server for the private stuff that is not publicluly accessible

  • Help me harden my home server
  • Thanks for the amazing reply and specially for the explanation regarding wireguard.

    I didnt know about crowsec and kata containers, both amazing projects, I will definetely look into it and try to set them up.

    Just one quick follow up question, when you mention dedicanted service user, do you mean its best to have a sepate user for each service, such as one for nginx, one for adguardhome and so on? Currently all of them run under the same user and I didnt think about this possibility before.

  • Help me harden my home server

    I currently have a home server which I use a lot and has a few important things in it, so I kindly ask help making this setup safer.

    I have an openWRT router on my home network with firewall active. The only open ports are 443 (for all my services) and 853 (for DoT).

    I am behind NAT, but I have ipv6, so I use a domain to point to my ipv6, which is how I access my serves when I am not on lan and share stuff with friends.

    On port 443 I have nginx acting as a reverse proxy to all my services, and on port 853 I have adguardhome. I use a letsencrypt certificate with this proxy.

    Both nginx, adguardhome and almost all of my services are running in containers. I use rootless podman for containers. My network driver is pasta, and no container has "--net host", although the containers can access host services because they have the option "--map-guest-addr" set, so I don't know if this is any safer then "--net host".

    I have two means of accessing the server via ssh, either password+2fa or ssh key, but ssh port is lan only so I believe this is fine.

    My main concern is, I have a lot of personal data on this server, some things that I access only locally, such as family photos and docs (these are literally not acessible over wan and I wouldnt want them to be), and some less critical things which are indeed acessible externally, such as my calendars and tasks (using caldav and baikal), for exemple.

    I run daily encrypted backups into OneDrive using restic+backrest, so if the server where to die I believe this would be fine. But I wouldnt want anyone to actually get access to that data. Although I believe more likely than not an invader would be more interested in running cryptominers or something like that.

    I am not concerned about dos attacks, because I don't think I am a worthy target and even if it were to happen I can wait a few hours to turn the server back on.

    I have heard a lot about wireguard - but I don't really understand how it adds security. I would basically change the ports I open. Or am I missing something?

    So I was hoping we could talk about ways to improve my servers security.

    57
    Custom domain email sometimes marked as invalid?
  • I have a domain with one of the new TLD which I used for my emails.

    Most services worked fine with it, but there were a few cases where my email was flagged as fraudulent and I had to call, explain it was legit and provide with another email.

    There was one service I registered which explicitly said they oy accept gmail addresses.

    Roughly one year ago I acquired a new domain using the .org extension, I am migrating my accounts to this one, and I havent had any problems so far.

    So overall my conclusion is that most services are fine with custom emails, a few of them block based on TLD and an even smaller subset will allow only specific providers. Since I am moving alway from big corp, having a widely used TLD that seems to be accepted in most cases is my personal sweet spot.

  • Simpler alternative to prometheus-alertmanager and/or graphana?
  • Have you played around with Grafana? It really is quite simple if you have prometheus already working.

    For a home lab environment you dont even need to use prometheus-alertmanager. Grafana can handle alerts as well.

    Grafana also has hundreds of pre-made dashboards you can import. Node monitoring is quite straightforward.

    Assuming you have prometheus good to go, all you need to do is go to Grafana - Datasources, create a new datasource, point to your prometheus instance.

    Then you can import the dashboards you want.

    Now you can setup your alerts - you can use SMTP, telegram, slack among others for your notifications.

  • is forwardemail a scam?

    So I have recently found out about forward email just a few months ago.

    I am currently using tuta as my email provider, and I have been doing so for the last three years. But I am not very happy with the closed ecosystem and locking of basic features behind paywalls.

    So I decided to give forwardemail a go after reading about it on free software foundation's webmail systems (this is a web archive link, more on that later)

    Now the thing is, the service works. But things don't really feel legit. They claim to have thousands of users but there's surprisingly little information about them other than their own website. The branding seems completely generic and pretty much all of their code seems to be coming from one single account with no real information.

    There's a couple reviews about them on trust pilot but the positive ones mostly come from accounts where the only review is for forwardmail.net

    I've read some discussion about them getting recommended on privacy guides, they sounded very professional and mentioned even wanting to get auditioned, but to the best of my knowledge that has not happened yet (please correct me if I am wrong). Worse than that they seemed to stop replying to the thread a couple months ago.

    Finally, I realized today that FSF has removed their recommendation for forwardemail from their website

    In conclusion, I have tested and the service does work, but I can't tell if there is something shady happening. What do you all think?

    12