OpenBSD has had two remote holes in its default install in nearly 30 years. The Linux ecosystem racks up more CVEs in a busy month than OpenBSD has in its whole life.
It is the most security-obsessed operating system in production, and almost nobody runs it on a VPS. For some workloads, that's a mistake.
OpenBSD is not for everyone, and it doesn't try to be. It lacks Ubuntu's package ecosystem, RHEL's enterprise support contracts, and the market share of pretty much any Linux distribution. What it has is close to three decades of code auditing, proactive security work, and a development culture that treats every line of code as possible attack surface.
If you've been looking at an OpenBSD VPS and aren't sure it's the right call, this guide covers what makes OpenBSD different, which workloads it suits, where it falls short, and how to deploy one without fighting your hosting provider.
What Makes OpenBSD Different?
Every Linux distribution calls itself "secure." OpenBSD barely markets itself at all. It ships an operating system whose defaults are already locked down.
The difference is in the architecture. On Linux, security usually gets layered on afterwards: install the OS, then configure a firewall, set up SELinux or AppArmor, harden SSH and apply CIS benchmarks. Every one of those steps is optional, can be misconfigured, and is maintained by a different group of people with their own priorities.
On OpenBSD, security is the base. The defaults are tight, the code is audited continuously, and when security conflicts with features, performance or compatibility, the developers have picked security again and again. Most projects won't make that trade.
pledge() and unveil(): Security You Can Actually Use
These two system calls are why security engineers get excited about OpenBSD, and they are a big part of why an OpenBSD VPS is the right tool for some jobs.
pledge() lets a program declare which system operations it will need. After it pledges, any attempt to use something outside that set kills the process on the spot. A DNS server can pledge that it only needs network and DNS operations, and if an attacker compromises it and tries to spawn a shell, the kernel kills it. There are no configuration files or policy engines involved, just one function call.
unveil() limits which parts of the filesystem a program can see. A web server can unveil only its document root and its log directory, and the rest of the filesystem disappears from its view. The program can't read other files and can't even confirm that they exist.
pledge() + unveil() vs Linux Security:
OpenBSD:
pledge("stdio inet rpath", NULL);
unveil("/var/www", "r");
unveil("/var/log/httpd", "rw");
// Done. Three lines. The program is now confined.
// Any violation = instant SIGABRT. No exceptions.
Linux (to achieve similar confinement):
1. Write an AppArmor or SELinux policy
2. Configure seccomp-bpf filters
3. Set up systemd sandboxing (ProtectSystem, PrivateTmp, etc.)
4. Configure Linux capabilities
5. Maybe add Landlock for filesystem restrictions
6. Hope all five layers are consistent with each other
7. Debug the inevitable policy conflict
Both can confine a program; on OpenBSD it takes three lines.
Nearly every program in the OpenBSD base system uses pledge() and unveil(). You don't switch it on; the OS ships that way. Each release widens that coverage, and patches in March 2026 tightened the restrictions further around path handling and mount operations.
Secure by Default
A fresh OpenBSD install, with nothing changed, already enables or enforces the following:
- W^X (write XOR execute): a memory page can be writable or executable, never both, and this holds across the whole system including the kernel. Most exploits that write code into memory and then run it simply fail.
- ASLR: OpenBSD has had address space layout randomization since 2003, applied to the stack, heap and shared libraries, and now the kernel too, which is relinked in a random layout on every boot. Some Linux distributions ship only part of this.
- Encrypted swap: on by default since 2005. Swap is encrypted with keys that are thrown away at shutdown, so a cold boot attack can't recover it.
- The PF firewall: one of the cleanest packet filters ever written, with syntax that reads almost like English. pfSense and OPNsense are built on it and run millions of networks.
- LibreSSL: OpenBSD forked OpenSSL after Heartbleed and stripped out a large amount of old code. LibreSSL is the default, with a cleaner codebase, fewer CVEs, and maintainers who audit what they ship.
Getting Linux to the same baseline takes expertise, time and ongoing configuration management. On OpenBSD you get it when you type install.
What an OpenBSD VPS Is Good For
OpenBSD isn't a general-purpose server OS the way Ubuntu or Debian are. It's a specialist tool, and knowing where it shines decides whether your deployment goes well or turns into a fight.
Firewalls and Network Appliances
This is OpenBSD's home turf. PF is arguably the best packet filter on any platform. If you need a VPS that acts as a firewall, VPN gateway, NAT box or traffic shaper, OpenBSD is the obvious pick: the networking stack has been in heavy use for decades, the tools are part of the base system, and the security record is hard to match.
VPN Endpoints (WireGuard and OpenVPN)
Running your own VPN on an OpenBSD VPS puts your exit point on an OS whose networking stack has been audited for decades. WireGuard is in OpenBSD's kernel. Add PF for traffic control on top of the default hardening and you have one of the most secure self-hosted VPN setups you can build.
DNS Servers
OpenBSD's base system includes unbound (a recursive resolver) and nsd (an authoritative nameserver). Both run under pledge() and unveil(). A DNS resolver on an OpenBSD VPS runs on a heavily hardened platform without a single extra package.
Mail Servers
OpenSMTPD comes from the OpenBSD project and follows the same security-first approach. It's in the base system, it uses pledge() and unveil(), and its configuration is far simpler than Postfix or Exim. For a small, secure mail server, OpenBSD with OpenSMTPD is hard to beat.
Jump Hosts and Bastion Servers
A bastion host exists to be the one hardened way into your network, and OpenBSD fits that role almost perfectly. It has a small attack surface, an audited SSH implementation (OpenSSH was created by the OpenBSD project), and privilege separation throughout the OS.
Privacy-Sensitive Workloads
Put OpenBSD on an anonymous VPS provider that doesn't collect your identity and you have infrastructure hardened at the OS level and at the account level. Journalists, researchers and anyone handling sensitive data have good reason to like that combination.
What OpenBSD Is NOT Good For
OpenBSD is the wrong choice for the following.
Docker and containers are out. OpenBSD doesn't support Docker and has no container runtimes, so if your workflow depends on containerized deployments, use Linux.
A large, high-traffic web application with dozens of dependencies, a complex build pipeline and container orchestration will move slower on OpenBSD, with its smaller package ecosystem and different tool conventions. Linux is the better fit there.
OpenBSD also supports a narrower range of hardware than Linux. That matters less on a VPS: on standard server hardware (Intel NICs, common storage controllers) it rarely comes up, though on exotic or very new hardware it can.
Performance-critical workloads usually run faster elsewhere, because OpenBSD puts security ahead of performance. Its networking stack is excellent, but raw throughput benchmarks usually favor Linux, especially for workloads that use features like io_uring or eBPF. Building a CDN? Use FreeBSD or Linux. Building a firewall? Use OpenBSD.
The package selection is smaller. The OpenBSD ports tree has around 11,000 packages, against more than 60,000 in Debian. Most common server software is there, but niche or bleeding-edge packages may not be, so check the ports tree for what you need before you commit.
How to Deploy an OpenBSD VPS
Finding a provider that treats OpenBSD as a first-class option is harder than it should be. Most big providers don't offer it, make you upload a custom ISO, or keep an outdated image around as an afterthought.
What to look for in an OpenBSD VPS hosting provider:
Start with a native OpenBSD template: a current OpenBSD image that deploys straight away. If you have to upload your own ISO and install by hand through a VNC console, the provider tolerates OpenBSD without really supporting it.
The server should be a KVM virtual machine, which is where OpenBSD runs best. Avoid container-based virtualization (OpenVZ, LXC): it shares a Linux kernel and can't run BSD at all.
You also want console access (serial or VNC) for first setup and emergencies, since OpenBSD's installer and boot process run over a serial console.
Resources can stay modest. OpenBSD is efficient, and DNS, VPN, firewall and small web server workloads need very little, so even a plan with 4 GB of RAM leaves plenty of headroom.
On Servury, OpenBSD 7.9 is a first-class template on every Blackbox plan. Pick it at deploy time and your server is up in minutes, with no ISO upload and no manual install. No email, no KYC, and crypto payments accepted.
Getting Started After Deployment
The base system is hardened from the first boot, but most administrators start with a few steps.
Update the system. Run syspatch to apply binary security patches. OpenBSD publishes patches between releases, and syspatch installs them without a full upgrade.
Configure PF. Edit /etc/pf.conf to set your firewall rules. A basic starting point:
# /etc/pf.conf - basic OpenBSD firewall
set skip on lo
# Block everything by default
block all
# Allow outbound traffic
pass out quick
# Allow SSH from anywhere (restrict to your IP for production)
pass in on egress proto tcp to port 22
# Allow your application ports
pass in on egress proto tcp to port { 80, 443 }
Install packages. Use pkg_add for extra software. For a VPN server, pkg_add wireguard-tools. For a web server, httpd is already in the base system.
Enable services. Use rcctl to enable and start them, for example rcctl enable httpd and then rcctl start httpd.
The base system already includes SSH (OpenSSH), a web server (httpd), a mail server (OpenSMTPD), DNS software (unbound, nsd) and NTP (OpenNTPD). Plenty of workloads never need a single package.
OpenBSD vs FreeBSD on a VPS
If you're choosing between the two BSDs for a VPS, it comes down to priorities.
Pick OpenBSD when security comes first, the workload is network-facing (firewall, VPN, DNS, mail), and you'll give up some performance and package selection for the strongest defaults available.
Pick FreeBSD when you need ZFS, the workload is heavy on storage or throughput, you want a bigger package ecosystem, or you need jails for lightweight isolation. FreeBSD is more general-purpose and faster on many workloads.
Both are excellent at different jobs.
When to Choose OpenBSD
OpenBSD gives up some speed and features for security, and for firewall, VPN, DNS and mail work that trade pays off.
An OpenBSD VPS makes sense for security-critical, network-facing work: firewalls, VPN endpoints, DNS resolvers, mail servers, bastion hosts and privacy-sensitive services. Decades of code auditing, pledge() and unveil(), and locked-down defaults make it the strongest platform for those roles.
For containers, large web applications and complex build pipelines, Linux is probably the better tool, and that's fine. Matching the OS to the job is better engineering than running everything on one platform.
If OpenBSD fits your workload, deploy one on Servury: OpenBSD 7.9 as a first-class template, no email, no KYC, crypto accepted, and running in minutes.
Frequently Asked Questions
Is OpenBSD good for a VPS?
For the right workloads it's the best choice there is. OpenBSD is excellent as a firewall, VPN endpoint, DNS server, mail server or jump host. Its security defaults are hard to match, and the base system has most of the tools you need without extra packages. For general web hosting or containerized applications, Linux fits better.
Can I run Docker on an OpenBSD VPS?
No. OpenBSD doesn't support Docker or any OCI-compatible container runtime, so if your deployments depend on containers, use Linux. OpenBSD isolates programs with pledge(), unveil() and chroot instead.
How does OpenBSD compare to Linux for security?
OpenBSD's advantage comes from its defaults and design philosophy more than from any single feature. Linux can be made very secure with SELinux, AppArmor, seccomp, Landlock and careful configuration. OpenBSD ships hardened. Both approaches are valid, but OpenBSD takes less ongoing effort to keep in that hardened state.
Is OpenBSD slower than Linux?
In raw benchmarks, usually yes. The kernel makes design choices that favor security over speed (W^X enforcement, KARL, extensive randomization). For network appliance workloads the difference is negligible. For high-throughput data processing, Linux will be faster. Choose based on which matters more to you.
Where can I deploy an OpenBSD VPS server?
Not many VPS providers offer OpenBSD as a first-class option. Servury has OpenBSD 7.9 as a native template that deploys in minutes. Vultr offers OpenBSD images in 32 locations, and ARP Networks has supported BSD hosting since 2008. Most mainstream providers (AWS, DigitalOcean) either don't offer OpenBSD or require a custom ISO upload.
What version of OpenBSD should I run?
Always the latest release, currently OpenBSD 8.0, which came out on October 20, 2026. OpenBSD patches only the two most recent releases (now 8.0 and 7.9), so anything older misses important fixes. Use syspatch to stay current between releases. Servury's template is OpenBSD 7.9, which is still patched; run sysupgrade to move it to 8.0.