Guiorgy
@Guiorgy@lemmy.ml
- Comment on Is using zfs really worth the investment vs other filesystems? 1 day ago:
Both ZFS and BTRFS require having at least 2 copies for healing, however, unlike a standard RAID1 that is oblivious to which of the 2 copies is healthy, the 2 filesystems use CRC checksums to figure out which is corrupt and recover the good one. As long as you have at least 2 copies, they will chech the checksum on every read abd heal it if corruption is detected. Besides that, you’d schedule a periodic scrub to also check the data that hasn’t been read in a while.
In ZFS you can tell it to keep 2 copies of everything on 1 drive, which would give you the healing effect, but this obviously literally halves the drive capacity, and does not sace you if the drive dies.
Personally, I find ZFS easier to use than BTRFS, it’s not that complicated once you get the hang, plus LLMs can help anyway. It does have many dials that can be tuned, but unless you are trying to optimize it for a specific usecase, the generally recommend setting are fine for most use cases.
It’s not built into the kernel, but server distros generally build it as a loadable module, which is kept in step with the kernel, so generally no issues there. On distros like Arch it can be really annoying though.
“Slightly lower” is a bit of an understatement, both for ZFS and BTRFS. Those are CoW (Copy on Write) filesystems, so they are much slower to write, which is a traid off for the benefits of CoW. On the other hand, thanks to transparent compression, they can be faster to read.
One downside of ZFS over BTRFS is fragmentation, all CoW filesystems suffer from it, but BTRFS allows you to defragment in place (takes a while though) unlike ZFS.
If you can’t afford storage, the data you want to store is generally compressible, and speed is not critical/priority, it might be woth using ZFS/BTRFS just for the transparent compression to save on space and get more out of the drives you have. I’m using BTRFS on a Fedora system for this reason alone, helps me avoid buying a new SSD 😬
- Comment on Is using zfs really worth the investment vs other filesystems? 1 day ago:
If you only require mirrors (RAID 1) then BTRFS works fine, but if you need something more and the system has good support for it (e.g. Ubuntu) then ZFS is better IMO. Yes you can use mdraid with BTRFS, but I prefer 1 ZFS over 10 different moving parts.
- Comment on Is using zfs really worth the investment vs other filesystems? 1 day ago:
RAID is not a backup, what RAID gives is availability, what you should prioritize depends on the usecase, but generally proper backups are usually the priority
- Comment on I want to self host my email server. 1 day ago:
Ensh*tification
- Comment on I went vpn only 2 days ago:
Every solution has its pros and cons. If you rely on something that requires public access (like randomly sharing access with others) than this is not a solution for you. With that said, you can go hybrid, anything high risk that you will never share with others can go behind a VPN, anything you intend to share with others stays public but goes into a VM on a separate VLAN with restricted access to stuff to minimize the blast radius should sh*t go down. Personally this is what I’m trying to do, most things have been moved behind VPNs, only a few things remain public and I’m slowly moving them to separate VMs in a restricted network.
- Comment on NGINX2Root by Xint — From nginx visitor to root of the server host 3 days ago:
On the bright side, nobody in the company ever took me seriously when I talked about security, but now they seem more willing to hear me out 🤷
- Comment on NGINX2Root by Xint — From nginx visitor to root of the server host 3 days ago:
Nah, only Microsoft vulnerabilities can end with 36x (it was only 365 before though)
- Comment on Update all your stuff, NOW - again. 2 weeks ago:
How is crashing on an unhandled path in a security context not better?!
- Comment on These are the kind of reactions I get when I recommend Anubis to deal with bots at work, what alternatives are there? 2 weeks ago:
I’ve also seen some sites use POWBlock, though, don’t know anything about it.
- Comment on Help an idiot protect his homelab and few services exposed to the internet. 3 weeks ago:
WireGuard is stateless, so running it “on” 24/7 is cheap, set it up once for them and leave it on, ideally they wouldn’t notice a thing.
- Comment on backups ran and tested! 3 weeks ago:
Proxmox VM snapshots and backups, plus proxsave I assume?
- Comment on backups ran and tested! 3 weeks ago:
I actually did that. Or well, I was planning to upgrade the Debian version and instead of doing it in place I replaced the drive (kept the old around for a while just in case) and did a clean install. I didn’t make any new backups or moved configs or anything outside what I already had, the system was back to operations faily quickly. The main reason, I have a markdown file describing every configuration and recovery step needed to get a fresh system to a fully working state in case of a disaster, and my test showed that it worked great. It does take a bit of effort to keep it up-to-date, but as shown, really worth it, and it douples as a small wiki for accumulated knowledge. I do wish to play with Ansible at some point if I have the time, but this works for now.
- Comment on PSA: PHP warns it plans to release 2 emergency patches imminently (today 14:00 UTC) 4 weeks ago:
Wouldn’t be surprised if the big guys got first dibs before everyone else
- Comment on PSA: PHP warns it plans to release 2 emergency patches imminently (today 14:00 UTC) 4 weeks ago:
Synology had a critical system and PHP package update yesterday, could it be related 🤔
- Comment on PSA: unattended-upgrades restarted nginx in the middle of my stream 4 weeks ago:
I mean, unattended upgrades has it’s own config file where you can specify when to schedule a reboot (when needed), which you’d usually do in off-hours like 2 AM your local time, so changing the Systemd unit activation time seems like the wrong fix.
- Comment on How long do you keep your backups? 5 weeks ago:
For frequently changing data hourly up to 24, daily up to 7, weekly upto 4, monthly up to 12.
For daily changing data daily up to 7 and etc. as above.
For seldom changing data a backup every 3 days with rotation based on a storage quota, and retention of manually held samples.
- Comment on I’m looking for the best remote access solution that works for me 5 weeks ago:
Did you read it to the end?
- Comment on I’m looking for the best remote access solution that works for me 5 weeks ago:
Without root user login, the attacker would have to guess not only the password to the user but also the username (hopefully it’s not something simple like admin), and once you are logged in you can use sudo -i to chage into root, which will require a password, therefore, we also disable password login so if someone does manage to somehow compromise the SSH user, they’d still need the password to become root.
- Comment on I’m looking for the best remote access solution that works for me 5 weeks ago:
You could spin a publicly exposed WireGuard daemon firewalled to allow peers access to the non-public SSH port only, which would result in double encryption, but would give you the peace of mind that an attacker would have to compromise both at the same time, which is very unlikely. Plus, WireGuard is very cheap to deploy and produces no logs. We use that model in my office to access our server.
- Comment on ISP won't set up static IP - Services keep going down 5 weeks ago:
Not in the US, at work we pay 6 times the rate I pay at home for 1/6 the speed I get at home, everyone hates our office internet speed 😂, at least it’s static do we can host stuff
- Comment on ISP won't set up static IP - Services keep going down 5 weeks ago:
Either use a dynamic DNS service, as many others have mentioned and probably easiest, or, assuming you only want yourself to have access to the services, another option is to use something like Tailscale or a WireGuard/FRP instance in a static VPS as the rendezvous point.
I was flat out rejected by my ISP to have a static IP, though I only had it changed once since I started hosting services, so ahatever.
- Comment on Help with Getting My Reverse Proxy to Forward the Correct IP Address 5 weeks ago:
The way a reverse proxy works is to literally stand in the middle of a connection, so either side only sees them communicating with the proxy, oblivious to the actual endpoint. The only “solution” to this, though it’s more of a hack really, is to somehow send the original IP as additional data in a way that both sides agree on, e.g. the X-Forwarded-For header as others have mentioned, however, as I’ve said, both sides need to support and aggree with that, so you may have to find a setting/config to enable on the services behind the proxy. Think of it this way, if services blindly trusted that header and you weren’t using a reverse proxy, a bad actor could send a request to your service with that header included thereby spoofing their identity in your logs, therefore, this kind of thing is usually opt-in