<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>freebsdjails - Hamradio.my</title>
	<atom:link href="https://hamradio.my/tag/freebsdjails/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Amateur Radio, Tech Insights and Product Reviews</description>
	<lastBuildDate>Fri, 07 Mar 2025 05:12:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://hamradio.my/wp-content/uploads/2026/02/cropped-cropped-image-removebg-preview-3-32x32.png</url>
	<title>freebsdjails - Hamradio.my</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Automating FreeBSD Container Management with Bastille</title>
		<link>https://hamradio.my/2025/03/automating-freebsd-container-management-with-bastille/</link>
					<comments>https://hamradio.my/2025/03/automating-freebsd-container-management-with-bastille/#comments</comments>
		
		<dc:creator><![CDATA[9M2PJU]]></dc:creator>
		<pubDate>Sat, 08 Mar 2025 05:07:05 +0000</pubDate>
				<category><![CDATA[container]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[free open source software]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[freebsd jails]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[bastille]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[devops]]></category>
		<category><![CDATA[freebsdjails]]></category>
		<category><![CDATA[jails]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[openbsd]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[virtualization]]></category>
		<guid isPermaLink="false">https://hamradio.my/?p=6696</guid>

					<description><![CDATA[<p>Bastille is an open-source system designed to automate the deployment and management of containerized applications on FreeBSD. Leveraging the power of FreeBSD Jails, Bastille provides a lightweight and secure way to run applications in isolated environments. Whether you&#8217;re a developer, system administrator, or security-conscious user, Bastille offers a streamlined approach to container management. Features of [&#8230;]</p>
<p>The post <a href="https://hamradio.my/2025/03/automating-freebsd-container-management-with-bastille/">Automating FreeBSD Container Management with Bastille</a> appeared on <a href="https://hamradio.my">Hamradio.my - Amateur Radio, Tech Insights and Product Reviews</a> by <a href="https://hamradio.my/author/9m2pju/">9M2PJU</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"></h1>



<p class="wp-block-paragraph">Bastille is an open-source system designed to automate the deployment and management of containerized applications on FreeBSD. Leveraging the power of FreeBSD Jails, Bastille provides a lightweight and secure way to run applications in isolated environments. Whether you&#8217;re a developer, system administrator, or security-conscious user, Bastille offers a streamlined approach to container management.</p>



<h2 class="wp-block-heading">Features of Bastille</h2>



<p class="wp-block-paragraph">Bastille comes with a range of features that make it an excellent choice for containerized environments on FreeBSD:</p>



<ul class="wp-block-list">
<li><strong>Automation Templates</strong>: Create and share container templates.</li>



<li><strong>Zero Dependencies</strong>: Lightweight and efficient.</li>



<li><strong>Highly Secure by Default</strong>: Implements strict access controls.</li>



<li><strong>Read-only Root</strong>: Protects the root user environment.</li>



<li><strong>Flexible Networking &amp; Firewall Options</strong>: Supports various network configurations.</li>



<li><strong>Target Containers</strong>: Execute commands inside specific or all containers.</li>



<li><strong>Snapshots &amp; Backups</strong>: Easily snapshot and restore containers.</li>



<li><strong>Open Source (BSD 3-Clause License)</strong>: Free to use and modify.</li>



<li><strong>Disk Quotas</strong>: Limit disk space usage per container.</li>



<li><strong>Stackable Templates</strong>: Reuse configurations by stacking templates.</li>



<li><strong>Active Development</strong>: Ongoing improvements and new features.</li>
</ul>



<h2 class="wp-block-heading">Supported Platforms</h2>



<p class="wp-block-paragraph">Bastille runs on any system where FreeBSD is supported, including:</p>



<ul class="wp-block-list">
<li>Servers</li>



<li>Raspberry Pi</li>



<li>Cloud Providers</li>
</ul>



<h2 class="wp-block-heading">Installing Bastille</h2>



<p class="wp-block-paragraph">Bastille is available through the FreeBSD ports and package system. You can install it using:</p>



<h3 class="wp-block-heading">Using pkg</h3>



<pre class="wp-block-code"><code>pkg install bastille
</code></pre>



<h3 class="wp-block-heading">Using Ports</h3>



<pre class="wp-block-code"><code>portsnap fetch auto
make -C /usr/ports/sysutils/bastille install clean
</code></pre>



<h3 class="wp-block-heading">From Git (Bleeding Edge)</h3>



<pre class="wp-block-code"><code>git clone https://github.com/bastillebsd/bastille.git
cd bastille
make install
</code></pre>



<h3 class="wp-block-heading">Enable Bastille at Boot</h3>



<pre class="wp-block-code"><code>sysrc bastille_enable=YES
sysrc bastille_rcorder=YES
</code></pre>



<h2 class="wp-block-heading">Upgrading Bastille</h2>



<p class="wp-block-paragraph">If upgrading from a previous version, merge new configurations into your existing <code>bastille.conf</code>:</p>



<pre class="wp-block-code"><code>cd /usr/local/etc/bastille
diff -u bastille.conf bastille.conf.sample
</code></pre>



<p class="wp-block-paragraph">Update your configuration as needed before proceeding.</p>



<h2 class="wp-block-heading">Basic Usage</h2>



<p class="wp-block-paragraph">Bastille provides a simple command structure:</p>



<pre class="wp-block-code"><code>bastille command TARGET &#91;args]
</code></pre>



<h3 class="wp-block-heading">Common Commands</h3>



<ul class="wp-block-list">
<li><code>bastille create</code> – Create a new container.</li>



<li><code>bastille start</code> – Start a container.</li>



<li><code>bastille stop</code> – Stop a running container.</li>



<li><code>bastille list</code> – List running containers.</li>



<li><code>bastille console</code> – Access a running container.</li>



<li><code>bastille destroy</code> – Remove a container.</li>
</ul>



<h2 class="wp-block-heading">Setting Up Bastille</h2>



<p class="wp-block-paragraph">To configure networking, firewall, and storage, use:</p>



<pre class="wp-block-code"><code>bastille setup
</code></pre>



<p class="wp-block-paragraph">For custom setups, you can specify options like <code>bastille setup zfs</code> or <code>bastille setup vnet</code>.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>Note:</strong> If enabling the PF firewall, manually start it using <code>service pf start</code> after running <code>bastille setup</code>.</p>
</blockquote>



<h2 class="wp-block-heading">Example: Creating and Managing a Container</h2>



<h3 class="wp-block-heading">Step 1: Create a Container</h3>



<pre class="wp-block-code"><code>bastille create alcatraz 14.0-RELEASE 10.17.89.10/24
</code></pre>



<h3 class="wp-block-heading">Step 2: Start the Container</h3>



<pre class="wp-block-code"><code>bastille start alcatraz
</code></pre>



<p class="wp-block-paragraph">Output:</p>



<pre class="wp-block-code"><code>&#91;alcatraz]:
alcatraz: created
</code></pre>



<h3 class="wp-block-heading">Step 3: Access the Container</h3>



<pre class="wp-block-code"><code>bastille console alcatraz
</code></pre>



<p class="wp-block-paragraph">Output:</p>



<pre class="wp-block-code"><code>FreeBSD 14.0-RELEASE GENERIC
Welcome to FreeBSD!
</code></pre>



<h3 class="wp-block-heading">Step 4: Check Running Processes</h3>



<pre class="wp-block-code"><code>ps -auxw
</code></pre>



<p class="wp-block-paragraph">Example Output:</p>



<pre class="wp-block-code"><code>USER   PID %CPU %MEM  VSZ  RSS TT  STAT STARTED    TIME COMMAND
root 83222  0.0  0.0 6412 2492  -  IsJ  02:21   0:00.00 /usr/sbin/syslogd -ss
root 88531  0.0  0.0 6464 2508  -  SsJ  02:21   0:00.01 /usr/sbin/cron -s
</code></pre>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How to SETUP and configure FREEBSD JAILS (with BASTILLE)" width="640" height="360" src="https://www.youtube.com/embed/Ap64x6kFk-M?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">Bastille provides an efficient and secure way to manage FreeBSD containers. With powerful automation, security features, and ease of use, it is an excellent tool for developers and system administrators alike. If you&#8217;re running FreeBSD and need a container solution, give Bastille a try!</p>



<p class="wp-block-paragraph">For more information, check out the official <a href="https://github.com/BastilleBSD/bastille">Bastille Documentation</a>.</p>
<p>The post <a href="https://hamradio.my/2025/03/automating-freebsd-container-management-with-bastille/">Automating FreeBSD Container Management with Bastille</a> appeared on <a href="https://hamradio.my">Hamradio.my - Amateur Radio, Tech Insights and Product Reviews</a> by <a href="https://hamradio.my/author/9m2pju/">9M2PJU</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hamradio.my/2025/03/automating-freebsd-container-management-with-bastille/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
