<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Openbsd on Niall Donaghy</title>
    <link>https://ndonaghy.com/tags/openbsd/</link>
    <description>Recent content in Openbsd on Niall Donaghy</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Tue, 07 Apr 2026 01:57:29 +0100</lastBuildDate>
    <atom:link href="https://ndonaghy.com/tags/openbsd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OpenBSD sshd hardening with pf and sshguard</title>
      <link>https://ndonaghy.com/posts/openbsd-sshd-hardening/</link>
      <pubDate>Tue, 07 Apr 2026 01:57:29 +0100</pubDate>
      <guid>https://ndonaghy.com/posts/openbsd-sshd-hardening/</guid>
      <description>&lt;h1 id=&#34;goals&#34;&gt;Goals:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a sane sshd configuration&lt;/li&gt;&#xA;&lt;li&gt;a sane pf configuration&lt;/li&gt;&#xA;&lt;li&gt;optional: add sshguard (but recommended)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;setup-ssh-for-your-main-user&#34;&gt;setup SSH for your main user&lt;/h1&gt;&#xA;&lt;p&gt;Your main user is not root. :)&lt;/p&gt;&#xA;&lt;p&gt;Change to your regular user and setup SSH dirs:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;su - niall&#xA;mkdir -p /home/niall/.ssh&#xA;chmod 700 /home/niall/.ssh&#xA;chown niall:niall /home/niall/.ssh&#xA;# add pubkey(s) you want to be authorised for login&#xA;nano /home/niall/.ssh/authorized_keys&#xA;&amp;lt;paste in&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Default /etc/ssh/sshd_config has key-based login enabled, so test it now:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Installing OpenBSD 7.8</title>
      <link>https://ndonaghy.com/posts/openbsd-7.8-installation/</link>
      <pubDate>Tue, 07 Apr 2026 01:33:03 +0100</pubDate>
      <guid>https://ndonaghy.com/posts/openbsd-7.8-installation/</guid>
      <description>&lt;p&gt;This guide is VirtualBox-centric, but most everything will translate to your hypervisor or bare metal of choice.&lt;/p&gt;&#xA;&lt;h1 id=&#34;materials&#34;&gt;Materials&lt;/h1&gt;&#xA;&lt;p&gt;Installation ISO:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;cd78.iso - you will download packages from network&lt;/li&gt;&#xA;&lt;li&gt;install78.iso - self-contained&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;hypervisor&#34;&gt;Hypervisor&lt;/h1&gt;&#xA;&lt;p&gt;Create a new VM with the required CPU, RAM, and storage specs, and mount the ISO to boot from it and begin installation.&lt;/p&gt;&#xA;&lt;p&gt;VirtualBox-specific notes:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Network: If using wifi on host, use NAT mode for the NIC; bridge mode performance tanks (does not apply if host is wired).&lt;/li&gt;&#xA;&lt;li&gt;Storage: make &amp;ldquo;IDE&amp;rdquo; type PIIX4, attach ISO there, make &amp;ldquo;ACHI&amp;rdquo; type ACHI, enable host IO cache, and attach VDI there.&lt;/li&gt;&#xA;&lt;li&gt;VDI: Can tick Solid-state drive.&lt;/li&gt;&#xA;&lt;li&gt;Don&amp;rsquo;t be tempted by UEFI mode, you will have boot issues.&lt;/li&gt;&#xA;&lt;li&gt;Don&amp;rsquo;t be tempted by NVMe mode, disk will deadlock during install; ACHI is faster in Vbox anyway!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;installation&#34;&gt;Installation&lt;/h1&gt;&#xA;&lt;h2 id=&#34;network&#34;&gt;network&lt;/h2&gt;&#xA;&lt;p&gt;Follow instructions to set autoconf(DHCP) or static IP addressing and gateway, DNS, etc.&#xA;In this doc, in post-install tasks, instructions given to convert DHCP config to static config&lt;/p&gt;</description>
    </item>
    <item>
      <title>OpenBSD Disabling Unused Services</title>
      <link>https://ndonaghy.com/posts/openbsd-disabling-unused-services/</link>
      <pubDate>Tue, 07 Apr 2026 00:10:44 +0100</pubDate>
      <guid>https://ndonaghy.com/posts/openbsd-disabling-unused-services/</guid>
      <description>&lt;p&gt;Whilst setting up this OpenBSD VPS I trimmed some unused services. Secure by default, but securer when not running. :)&lt;/p&gt;&#xA;&lt;h2 id=&#34;check_quotas&#34;&gt;check_quotas&lt;/h2&gt;&#xA;&lt;p&gt;There are disk quota checks at boot, however, I am not using quotas:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;doas rcctl disable check_quotas&#xA;doas rcctl stop check_quotas&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;dhcpleased&#34;&gt;dhcpleased&lt;/h2&gt;&#xA;&lt;p&gt;The DHCP client daemon; this is not needed as I am using a static IP:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;doas rcctl disable dhcpleased&#xA;doas rcctl stop dhcpleased&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;slaacd&#34;&gt;slaacd&lt;/h2&gt;&#xA;&lt;p&gt;IPv6 stateless autoconfiguration; disable if you are not using IPv6, I am not:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
