Run OpenBSD on DigitalOcean for $4/month

104 pointsposted 6 hours ago
by speckx

45 Comments

bananamogul

an hour ago

That pricing is awful. $4/month for 512MB VPS...eeek.

You'll find much better pricing at RackNerd, DediRock, InterServer, BuyVM, etc. Small indy hosting companies are the way to go. 2GB for $5/month or so is the typical price point.

Any host that offers KVM and allows you to upload your own ISO can run OpenBSD (or FreeBSD, NetBSD, whatever you want).

Check out LowEndTalk or LowEndBox for deals. There are other sites but that's where I shop.

Sure, if you need an API, or if you want to host in one of the less common locations, or if you absolutely must have five nines, then DO or Vultr or Linode or Amazon LightSail can be a good fit. But if you just need a VPS with a control panel in a typical hosting location (Amsterdam, LA, New York, Chicago, Singapore, etc.) then I don't see the point of paying more at one of the big hosts.

coldpie

32 minutes ago

> That pricing is awful. $4/month

> Small indy hosting companies ... $5/month or so is the typical price point.

> I don't see the point of paying more at one of the big hosts.

I'm confused. People who are paying $4/mo at the big host should instead save money by paying $5/mo at a small host?

jwrallie

an hour ago

OVH VPSs are particularly nice for RAM. Something in the 4-5 USD range can give you 4GB. The issue is patience with availability, sometimes it takes a while to get one in the location you want.

daymanstep

an hour ago

Lightsail does not offer five nines.

irishcoffee

21 minutes ago

Neither does GitHub, and for whatever reason everyone and their cousin uses it still. :)

dchest

4 hours ago

A warning about openbsdhandbook[.]com - this website has completely incorrect information for some things. Like hallucinated, even though I think it was created before LLMs.

SoftTalker

3 hours ago

For BSD (especially OpenBSD) you can pretty much just use the man pages and the online FAQ. They are really good.

If you want a book, Absolute OpenBSD is good though a bit out of date now. A lot of it would still be applicable though, if backed up by the current man pages.

Reading undeadly.org is a another good way to keep up on developments.

imwally

3 hours ago

Dang, I didn't know that. I thought it was decent enough to get people exposed to doas(1), pkg_add(1), syspatch(8), etc... from which they could then read the man pages.

Thanks for pointing this out and I appreciate the other recommendations in this thread. Massive +1 for @jcs. That dude is awesome and puts out great stuff.

8by3

6 hours ago

I've always gone with Vultr (vultr.com) for BSD VMs, its properly supported by them and while I've never hard verified this, they seem like a nice smaller player. Like they have offered Open/Free BSD VM's for > 10 years, kind of nice.

QuantumNomad_

3 hours ago

I have a couple of FreeBSD VMs on Vultr. For quite some time sshd regularly dies on one of them and I am not sure why.

A couple of theories I’ve had is that maybe

a) my VM was compromised and there is a persistent rootkit installed that kills sshd, or

b) file corruption after previous unclean shutdown has left some file needed by sshd corrupted and it leads to this behaviour, or

c) maybe it’s running out of memory sometimes

Each time I want to ssh into the machine I usually have to first connect with the VNC from the vultr dashboard to start sshd up again.

It’s running the latest FreeBSD, as every now and then I log in and do an upgrade on it some time after a new version has been released.

A persistent rootkit may have been installed if it was compromised between when some vulnerability became known and when I later upgraded next time.

If a file was corrupted in an unclean shutdown in the past maybe it’s a file that has not been changed between FreeBSD versions so even though upgrades replace some files maybe it’s the same corrupted file all along.

Ideally I’d just reinstall the machine, but that’s always more of a hassle than it should be so I continue running the VM in this broken state where sshd keeps dying every now and then.

cyberpunk

3 hours ago

Well, you can at least run "freebsd-update IDS" on this system to verify the base system, "pkg check -s -a" would check the integrity of files installed via pkg also.

It will only take a few min..

QuantumNomad_

3 hours ago

Neat! Haven’t tried either of those before.

While I’m at it I also took a quick look now at output of `top` and it’s sitting at 27 MB free RAM lol. So from that, out of memory is very likely the reason I keep having sshd die on me.

ilikecode

14 minutes ago

Try adding this to your /etc/rc.conf:

    sshd_oomprotect=YES

Then run

   service sshd restart

silisili

2 hours ago

Not familiar with BSD but does it not syslog oom kills like linux?

QuantumNomad_

2 hours ago

After rebooting the VM now, sshd died even when there was hundreds of megabytes free RAM available. So it seems I spoke too soon when I said it seemed to be for that reason.

Previously I haven't seen much detailed reason for why it dies in system messages. But this time it said something very specific:

> sshd[2036]: fatal: pack_hostkeys: serialize hostkey private: string is too large

Which kind of sounds like one of the sshd hostkey files might be corrupt? And maybe it only triggers after a while becuase it happens when scanners try to connect to it and during ssh negotiation sshd ends up selecting a different hostkey type than the one it uses when I connect to the machine myself?

I'm going to regenerate all of the three hostkey files on the server, and after that also disable the two that I can do without anyway.

SoftTalker

6 hours ago

I used buyvm.net for BSD a while back. Didn't have any issues, and the few times I contacted their support they were quick to respond and helpful.

rootbsd.net before that, but they don't seem to exist anymore.

SpecialistK

4 hours ago

They were very helpful when one of the AMD firmware patches in 7.3 caused my VPS to not boot. They even offered to apply a manual fix until patch -015 was available which fixed it.

darksim905

5 hours ago

The admins have access to your data and unless things have changed, that isn't monitored. They also bend to NSLs like any other provider. What they charge vs what things cost hurts.

thesuitonym

4 hours ago

Any cloud compute vendor will have access to your data unless you encrypt it.

cyanmagenta

3 hours ago

> unless you encrypt it

And to clarify, this means encrypt it before it gets to the VPS. Just having full-disk encryption is not enough because cloud providers can dump RAM. There are tools that easily extract encryption keys from RAM.

So, really, you need to trust the cloud provider unless everything is encrypted on computers you own.

FLeXMurphy

4 hours ago

DO burned me recently due to their unwillingness to handle DDOS attacks: "The best we can do is change your IP." Thanks guys.

Switched to OVH immediately.

forinti

4 hours ago

I tried to warn them that they were hosting a phishing site once and they weren't very receptive.

Otherwise, I hosted a site with them for years and all went well.

thatjoeoverthr

3 hours ago

I migrated a client off for the same reason. The “app platform” ran behind Cloudflare, but they run the Cloudflare, so I couldn’t put it behind my own Cloudflare, nor could I configure it and solve the problem. Moved the entire thing to Hetzner, fast. What a week.

crest

4 hours ago

They're also too stupid to understand that they've been dropping UDP datagrams with src port == dst port and < 1024. This obviously breaks IPsec IKE. I showed them dummy traffic captured with netcat and tcpdump, but they refused to admit they caused the problem. They repeatedly claimed to see nothing dropped between the pcap files, that I was doing it to myself with a firewall that wasn't even enabled, or that this is just how a network is supposed to work.

githubholobeat

5 hours ago

You can even go completely free with Cloudflare tunnel with your own office/home hardware. I have a simple web running on my old Raspberry Pi 3 + nginx + golang web app. Also with ssh access to the Pi.

xp84

4 hours ago

Yes, the cloudflare SSH tunneling works well -- though I think the fact that SSL is provisioned means it'll show up in the cert transparency log, possibly attracting unwanted attention to probe my home systems.

I ended up turning that off and switching to Tailscale. Tailscale is set to advertise my home IP range (I chose one that's not 192.168 based which avoids problems with range conflicts). So I can just connect to Tailscale and connect to 10.X.Y.Z as though I'm home. If I want memorable hostnames I can point DNS records to those private IPs.

hughw

3 hours ago

You don't even need your own hardware. You can serve your site using the free CF Workers plan. Of course, that's a different goal than running bsd in an aggressively tiny cloud instance.

altmanaltman

4 hours ago

You still have to pay for electricity. If you consider that "completely free" then paying $4 per month should also be considered "completely free".

tolerance

4 hours ago

Back in my day a blog post like this would've included a promotional link for $100 in DigitalOcean credits!

blacksmith_tb

2 hours ago

Now DO has to plow those loss-leading Marketing dollars into paying for memory I expect...

daneel_w

5 hours ago

I run OpenBSD at netcup.de for €2/month. It's very low-spec, but it's enough.

slekker

6 hours ago

For a little bit more you can rent on https://openbsd.amsterdam - they also donate to the OpenBSD foundation!

atmosx

12 minutes ago

Great service for small personal blog or a testbed. OpenBSD has httpd + acme client for SSL termination & automated rotation so the base system has just enough to host a low traffic website. For anything that requires uptime one will have to buy multiple VMs and handle the uptime story themselves, since they go down regularly for maintenance.

The fact that they donate back to OpenBSD is great though. I own a VM there for testing stuff.

somat

an hour ago

openbsd.amsterdam is notable because they use the openbsd native vmm as the vm host. It is obsd all the way down over there.

It is a small and no frills service but the sys-admin, who runs the project, is very helpful and attentive. That is to say probably much better and human customer service than the big players. There are definite downsides, but if a project fits, highly recommended.

leonheld

5 hours ago

Man I always look at this project with nothing by awe. I'd love to start something like this... if you're in central Switzerland and would like to copy their model, hit me up.

8by3

6 hours ago

They are cool, man they've grown. I used that when there were ~20 VM's on there. Its a great project but think its only physically in Amsterdam which is why I ended up moving back to vultr, as they have many more options.

Scarbutt

5 hours ago

Crazy that after so many years of cloud compute a 8GB VM is $48/mo.

toast0

4 hours ago

If you can, it really makes sense to look for low cost dedicated servers. For $35/month I get a whole machine with dual L5520 and 24 GB of ram. I used to have a little nicer server for a little less, but that provider had to close because their costs for electricity and space went up too fast. Yes, the L5520 is ancient, but my server needs are tiny and it's fun to have a whole machine.

Look on webhostingtalk or lowendbox or lowendtalk.

slowin

an hour ago

> that provider had to close because their costs for electricity and space went up too fast

This is kind of exactly what I worry about with a dedicated box. That and hardware failure.

assimpleaspossi

4 hours ago

RamNode does $2/month but just one ipv6 address. Add a ipv4 address and it's $4/month.