Live data from Hacker News

Why use OpenBSD?

tumfatig.net

81–90 of 106 posts

Re: Why use OpenBSD?

#81
post #25

I built my last company on OpenBSD. It was easy to understand the entire system, and secure-by-default (everything disabled) is the right posture for servers. Pledge and unveil worked brilliantly to restrict our Go processes to specific syscall sets and files. The firewall on OpenBSD is miles better to configure than iptables. I never had challenges upgrading them--they just kept working for years.

> The firewall on OpenBSD is miles better to configure than iptables. That's understating the matter by a huge amount. pf is easier to read and understand, easier to adjust, more dynamic, and works like every other firewall in the world not based on iptables.

iptables is indeed horrid, but Linux has nftables nowadays, which is much nicer and easier to configure.

Re: Why use OpenBSD?

#82

The list is missing the fact that the documentation is consistent and centralized.

The post has many links to OpenBSD's man pages, FAQ and manual. But I thought it was quite unsatisfying, even common tasks are missing. Or at least I couldn't find them.

I had a test case in mind while reading the documentation: running a custom web service with Nginx as a reverse-proxy. In the documentation, I couldn't find anything about creating a service. Are we supposed to write a frontend script (in ksh) that accepts various arguments (ie start/reload/...)? And what about the logs of this wrapper? And if I want an auto-restart when my program crashes, I have to find another tool that will wrap and monitor the process? I've done all this tedious work in Linux long ago, and I'm not willing to do it again.

If the question was "Why OpenBSD instead of Linux", I don't think documentation is a good argument. In fact, the only strong response I've read is "to try something a bit different and more niche".

Re: Why use OpenBSD?

#83

The list is missing the fact that the documentation is consistent and centralized.

The post has many links to OpenBSD's man pages, FAQ and manual. But I thought it was quite unsatisfying, even common tasks are missing. Or at least I couldn't find them. I had a test case in mind while reading the documentation: running a custom web service with Nginx as a reverse-proxy. In the documentation, I couldn't find anything about creating a service. Are we supposed to write a frontend script (in ksh) that a…

This is the page I was thinking of….

https://www.openbsd.org/faq/index.html

Re: Why use OpenBSD?

#84

The list is missing the fact that the documentation is consistent and centralized.

The post has many links to OpenBSD's man pages, FAQ and manual. But I thought it was quite unsatisfying, even common tasks are missing. Or at least I couldn't find them. I had a test case in mind while reading the documentation: running a custom web service with Nginx as a reverse-proxy. In the documentation, I couldn't find anything about creating a service. Are we supposed to write a frontend script (in ksh) that a…

The documentation you need is:

https://man.openbsd.org/intro.8

https://man.openbsd.org/rcctl

https://man.openbsd.org/rc.conf.local.8

https://man.openbsd.org/rc.d.8

Re: Why use OpenBSD?

#85
post #52
post #31

I adore openbsd and have been using it since 4.x however it is still slow, not slow to boot or anything like that but if you run it as a web server it manages about half the req/s of Debian. Network performance is also slower than Debian if you're using it as a firewall (but I still prefer it as the syntax of PF is just perfect).

there's a lot of optimisations they don't engage with because it makes the code "ugly" but there's a larger one here, where they disable hyperthreading outright due to side-channel attacks. Might be a leading cause of what you're seeing.

> where they disable hyperthreading outright due to side-channel attacks.

You can turn on hyperthreading if you need/want it: https://www.openbsd.org/faq/faq10.html#SMT

Re: Why use OpenBSD?

#86

I appreciate that OpenBSD sold its course on security-everywhere. Unfortunately I also kind of lost faith in the BSD variants. There are a few minor things such as PC-BSD suddenly vanishing, or years before NetBSD on their mailing list admitting that Linux outperformed their "runs on any toaster and other gimmick" strategy. But one of the key issues I had was this: I installed it (FreeBSD) on my second computer. I we…

Linux won't run on legacy machines the same way NetBSD does today.

Re: Why use OpenBSD?

#87

Earlier quoted context omitted.

How to upgrade Debian unattended if it's not a rolling release

Not the Grand Poster, but we use the Debian package "unattended-upgrades" to install security updates automatically on our servers, and send an email if a reboot is required to complete the process (kernel upgrade). Unattended upgrades could be configured to install more than the security release. Even with the stable release, one can add the official APT source for the Debian backports.

Just curious, how do you manage service restarts, just restart as the update finishes?

I think I’m a bit scarred when a docker upgrade took my entire stack down because of an api mismatch with portainer, so I’m trying to be present during upgrades.

Edit: I’m talking about Debian of course. I’m not familiar with OpenBSD.

Re: Why use OpenBSD?

#88

Earlier quoted context omitted.

You are not....it's Ubuntu. Not Linux, not Debian, Ubuntu. Debian (provided you don't just dump a bunch of 3rd party repos) just upgrades cleanly, we have hundreds of servers that just run unattended-upgrade and get upgraded to new Debian version every 2 years. The few Ubuntus we had had more problems.

How to upgrade Debian unattended if it's not a rolling release

I use unattended-upgrades with Debian's rolling release (aka testing).

Mostly works fine apart from bugs in unattended-upgrades, or when my boot partition runs out of disk.

Re: Why use OpenBSD?

#89

Earlier quoted context omitted.

Not the Grand Poster, but we use the Debian package "unattended-upgrades" to install security updates automatically on our servers, and send an email if a reboot is required to complete the process (kernel upgrade). Unattended upgrades could be configured to install more than the security release. Even with the stable release, one can add the official APT source for the Debian backports.

Just curious, how do you manage service restarts, just restart as the update finishes? I think I’m a bit scarred when a docker upgrade took my entire stack down because of an api mismatch with portainer, so I’m trying to be present during upgrades. Edit: I’m talking about Debian of course. I’m not familiar with OpenBSD.

Use needrestart, you can mostly automate those restarts with it.

Re: Why use OpenBSD?

#90

Earlier quoted context omitted.

You are not....it's Ubuntu. Not Linux, not Debian, Ubuntu. Debian (provided you don't just dump a bunch of 3rd party repos) just upgrades cleanly, we have hundreds of servers that just run unattended-upgrade and get upgraded to new Debian version every 2 years. The few Ubuntus we had had more problems.

How to upgrade Debian unattended if it's not a rolling release

In case you are talking about automated upgrades between releases, there are some ideas for that here:

https://wiki.debian.org/AutomatedUpgrade

It is feasible to do if you prepare ahead of time, and you can even do automated offline upgrades with apt-offline and some scripting.

Post reply on HN