<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Tell about your best practices setting up a FreeBSD server]]></title><description><![CDATA[<p dir="auto">There are many guides on setting up / hardening your server. Books, the manual, all good resources.</p>
<p dir="auto">I don't expect you to reproduce full books worth of content, or dump a lifetime of experience into a single post - but certainly anything you think important, under-covered or underappreciated in the "usual" resources, would be keen to know!</p>
<p dir="auto">To start, if I had to call out one best practice that stuck on me, it would be keeping the base system minimal, and putting services into jails (or, maybe daemonless going forward).</p>
]]></description><link>https://billboard.bsd.cafe/topic/64/tell-about-your-best-practices-setting-up-a-freebsd-server</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 13:11:33 GMT</lastBuildDate><atom:link href="https://billboard.bsd.cafe/topic/64.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Apr 2026 08:18:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tell about your best practices setting up a FreeBSD server on Thu, 09 Apr 2026 20:34:45 GMT]]></title><description><![CDATA[<p dir="auto">I recently submitted a Bugzilla PR for the FreeBSD Handbook's Security chapter, noting that it does not contain the phrase "hardening" or cover the how to perform the kind of hardening measures that I've seen documented in other OSes, or mandated by workplace policies.</p>
<p dir="auto"><a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294167" rel="nofollow ugc">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294167</a></p>
<p dir="auto">This is far from my area of expertise so any additional comments there on what the Handbook should include would be welcome. Obviously there will be some hardening requirements for personal laptops that are different to hardening for servers and vice versa, which makes structuring the chapter a bit tricky. In fact one of my complaints in the PR is that advice which should be drilled into all users, like taking note of FreeBSD Security Advisories, is at the very bottom of a long page - anybody who reads that far will have to get past a lot of material only relevant for more specialist use cases.</p>
<p dir="auto"><a href="https://docs.freebsd.org/en/books/handbook/security/" rel="nofollow ugc">https://docs.freebsd.org/en/books/handbook/security/</a></p>
]]></description><link>https://billboard.bsd.cafe/post/196</link><guid isPermaLink="true">https://billboard.bsd.cafe/post/196</guid><dc:creator><![CDATA[BigSneakyDuck]]></dc:creator><pubDate>Thu, 09 Apr 2026 20:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to Tell about your best practices setting up a FreeBSD server on Thu, 09 Apr 2026 12:18:24 GMT]]></title><description><![CDATA[<p dir="auto">A few things I always do.</p>
<ol>
<li>
<p dir="auto">Use ZFS. Unless you are severely memory constrained, ZFS is the sane choice. I even use ZFS for single disk installations.</p>
</li>
<li>
<p dir="auto">Set a ZFS refreservation to prevent the disk from filling up completely. ZFS does NOT like full disks.</p>
</li>
</ol>
<pre><code>zfs create -o refreservation=&lt;5-10 percent of total pool space&gt; &lt;poolname&gt;/reserved\n
</code></pre>
<ol start="3">
<li>Enable automagick ZFS scrubbing:</li>
</ol>
<pre><code>sysrc -f /etc/periodic.conf daily_scrub_zfs_enable=YES
sysrc -f /etc/periodic.conf daily_scrub_zfs_default_threshold=7
</code></pre>
<ol start="4">
<li>My "standard" set of sysctl.conf settings, most of these can be set during installation. Most of them are security oriented, the last one is because the ZFS default is almost always too low.</li>
</ol>
<pre><code>security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
security.bsd.see_jail_proc=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
kern.randompid=1
vfs.zfs.vdev.min_auto_ashift=12
</code></pre>
<ol start="5">
<li>enable jumbo frames, sizing is card dependent, and changes if I am using VLANs or not. But I aim for interfaces that are directly speaking IP to have an MTU of 9000, because damn near everything supports that.</li>
</ol>
<p dir="auto">ex:</p>
<pre><code>ifconfig_ix0="up mtu 9100 ... "
create_args_vlan1005="vlan 1005 vlandev ix0 mtu 9000 ... "
</code></pre>
<ol start="6">
<li>Disable various NIC offloading capabilities. I have never seen them work well under load. Your mileage may vary, and admittedly I haven't retested this since probably 13.something-RELEASE, but I was getting an order of magnitude better performance with it all switched off:</li>
</ol>
<pre><code>ifconfig_ix0="... -rxcsum -rxcsum6 -txcsum -txcsum6 -tso -lro -vlanhwtag -vlanhwtso -vlanhwcsum -mextpg
</code></pre>
<ol start="7">
<li>Disable password authentication in /etc/ssh/sshd_config:</li>
</ol>
<pre><code>ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
</code></pre>
<ol start="7">
<li>Install rocinante, and bastille if this is going to be a jail host. I try to keep my base systems fairly lean.</li>
</ol>
]]></description><link>https://billboard.bsd.cafe/post/194</link><guid isPermaLink="true">https://billboard.bsd.cafe/post/194</guid><dc:creator><![CDATA[nuintari]]></dc:creator><pubDate>Thu, 09 Apr 2026 12:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to Tell about your best practices setting up a FreeBSD server on Wed, 08 Apr 2026 15:39:09 GMT]]></title><description><![CDATA[<p><span><a href="/user/nibori">@<span>nibori</span></a></span> Wouldn't mind a list of sysctl.conf keys &amp; values people use!</p>]]></description><link>https://billboard.bsd.cafe/post/https://mastodon.bsd.cafe/users/pertho/statuses/116369833979454294</link><guid isPermaLink="true">https://billboard.bsd.cafe/post/https://mastodon.bsd.cafe/users/pertho/statuses/116369833979454294</guid><dc:creator><![CDATA[pertho@mastodon.bsd.cafe]]></dc:creator><pubDate>Wed, 08 Apr 2026 15:39:09 GMT</pubDate></item><item><title><![CDATA[Reply to Tell about your best practices setting up a FreeBSD server on Wed, 08 Apr 2026 13:21:41 GMT]]></title><description><![CDATA[<p dir="auto">Sidenote: some of the search results coming up</p>
<ul>
<li><a href="https://docs.freebsd.org/en/books/handbook/security/" rel="nofollow ugc">https://docs.freebsd.org/en/books/handbook/security/</a></li>
<li><a href="https://github.com/wravoc/harden-freebsd" rel="nofollow ugc">https://github.com/wravoc/harden-freebsd</a> (comments at <a href="https://forums.freebsd.org/threads/my-freebsd-hardening-script.89523/" rel="nofollow ugc">https://forums.freebsd.org/threads/my-freebsd-hardening-script.89523/</a>)</li>
<li><a href="https://www.freebsdsoftware.org/blog/hardening-freebsd-server/" rel="nofollow ugc">https://www.freebsdsoftware.org/blog/hardening-freebsd-server/</a></li>
<li><a href="https://vez.mrsk.me/freebsd-defaults" rel="nofollow ugc">https://vez.mrsk.me/freebsd-defaults</a></li>
<li><a href="https://hardenedbsd.org/content/about" rel="nofollow ugc">https://hardenedbsd.org/content/about</a></li>
</ul>
]]></description><link>https://billboard.bsd.cafe/post/184</link><guid isPermaLink="true">https://billboard.bsd.cafe/post/184</guid><dc:creator><![CDATA[nibori]]></dc:creator><pubDate>Wed, 08 Apr 2026 13:21:41 GMT</pubDate></item></channel></rss>