<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.sasara.moe/w/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_jails</id>
	<title>FreeBSD jails - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sasara.moe/w/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_jails"/>
	<link rel="alternate" type="text/html" href="https://www.sasara.moe/w/index.php?title=FreeBSD_jails&amp;action=history"/>
	<updated>2026-05-05T18:33:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://www.sasara.moe/w/index.php?title=FreeBSD_jails&amp;diff=464&amp;oldid=prev</id>
		<title>Rubenerd: /* Enable IP forwarding */</title>
		<link rel="alternate" type="text/html" href="https://www.sasara.moe/w/index.php?title=FreeBSD_jails&amp;diff=464&amp;oldid=prev"/>
		<updated>2025-09-27T23:24:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Enable IP forwarding&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:24, 27 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l44&quot;&gt;Line 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Enable IP forwarding===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Enable IP forwarding===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # sysctl net.inet.ip.forwarding=1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # sysctl net.inet.ip.forwarding=1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; # echo &quot;net.inet.ip.forwarding=1&quot; &amp;gt;&amp;gt; /etc/sysctl.conf&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Configure loopback interface===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Configure loopback interface===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rubenerd</name></author>
	</entry>
	<entry>
		<id>https://www.sasara.moe/w/index.php?title=FreeBSD_jails&amp;diff=449&amp;oldid=prev</id>
		<title>Rubenerd at 05:00, 27 September 2025</title>
		<link rel="alternate" type="text/html" href="https://www.sasara.moe/w/index.php?title=FreeBSD_jails&amp;diff=449&amp;oldid=prev"/>
		<updated>2025-09-27T05:00:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:00, 27 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l62&quot;&gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Better IPv6-based networking==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Better IPv6-based networking==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;#TODO&amp;lt;/code&amp;gt; here!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;#TODO&amp;lt;/code&amp;gt; here!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Tech]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rubenerd</name></author>
	</entry>
	<entry>
		<id>https://www.sasara.moe/w/index.php?title=FreeBSD_jails&amp;diff=448&amp;oldid=prev</id>
		<title>Rubenerd: Created page with &quot;&#039;&#039;&#039;FreeBSD jails&#039;&#039;&#039; are a process isolation tool on FreeBSD (surprising though it may seem) that extends &lt;code&gt;chroot(8)&lt;/code&gt; in wonderful ways.  ==Essential reading== * [https://docs.freebsd.org/en/books/handbook/jails/ FreeBSD Handbook chapter 17: Jails and Containers] * [https://freebsdfoundation.org/wp-content/uploads/2020/03/Jail-vnet-by-Examples.pdf Jail vnet by Examples, by Oliver Cochard-Labbé]  ==Basic configuration==  ===/etc/jail.conf===   ## Don&#039;t impo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sasara.moe/w/index.php?title=FreeBSD_jails&amp;diff=448&amp;oldid=prev"/>
		<updated>2025-09-27T05:00:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;FreeBSD jails&amp;#039;&amp;#039;&amp;#039; are a process isolation tool on &lt;a href=&quot;/wiki/FreeBSD&quot; title=&quot;FreeBSD&quot;&gt;FreeBSD&lt;/a&gt; (surprising though it may seem) that extends &amp;lt;code&amp;gt;chroot(8)&amp;lt;/code&amp;gt; in wonderful ways.  ==Essential reading== * [https://docs.freebsd.org/en/books/handbook/jails/ FreeBSD Handbook chapter 17: Jails and Containers] * [https://freebsdfoundation.org/wp-content/uploads/2020/03/Jail-vnet-by-Examples.pdf Jail vnet by Examples, by Oliver Cochard-Labbé]  ==Basic configuration==  ===/etc/jail.conf===   ## Don&amp;#039;t impo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;FreeBSD jails&amp;#039;&amp;#039;&amp;#039; are a process isolation tool on [[FreeBSD]] (surprising though it may seem) that extends &amp;lt;code&amp;gt;chroot(8)&amp;lt;/code&amp;gt; in wonderful ways.&lt;br /&gt;
&lt;br /&gt;
==Essential reading==&lt;br /&gt;
* [https://docs.freebsd.org/en/books/handbook/jails/ FreeBSD Handbook chapter 17: Jails and Containers]&lt;br /&gt;
* [https://freebsdfoundation.org/wp-content/uploads/2020/03/Jail-vnet-by-Examples.pdf Jail vnet by Examples, by Oliver Cochard-Labbé]&lt;br /&gt;
&lt;br /&gt;
==Basic configuration==&lt;br /&gt;
&lt;br /&gt;
===/etc/jail.conf===&lt;br /&gt;
&lt;br /&gt;
 ## Don&amp;#039;t import host env vars&lt;br /&gt;
 exec.clean;&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 ## Start/stop jails&lt;br /&gt;
 exec.start=&amp;quot;sh /etc/rc&amp;quot;;&lt;br /&gt;
 exec.stop=&amp;quot;sh /etc/rc.shutdown&amp;quot;;&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 ## Allow fdescfs and procfs (for services like Plex)&lt;br /&gt;
 mount.devfs;&lt;br /&gt;
 allow.mount.fdescfs;&lt;br /&gt;
 allow.mount.procfs;&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 ## Standard hostnames and locations based on jail name&lt;br /&gt;
 path=&amp;quot;/jail/${name}&amp;quot;;&lt;br /&gt;
 host.hostname=&amp;quot;${name}.host.lan&amp;quot;;&lt;br /&gt;
 mount.fstab=&amp;quot;/etc/fstab.${name}&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
===/etc/jail.conf.d/jailname.conf===&lt;br /&gt;
&lt;br /&gt;
 jailname {&lt;br /&gt;
   ## Example&lt;br /&gt;
   ip4.addr=&amp;quot;10.10.10.1&amp;quot;&lt;br /&gt;
   &amp;amp;nbsp;&lt;br /&gt;
   ## Required for Postgres&lt;br /&gt;
   allow.sysvipc=1;&lt;br /&gt;
   &amp;amp;nbsp;&lt;br /&gt;
   ## Required by some services&lt;br /&gt;
   mount.fdescfs;&lt;br /&gt;
   mount.procfs;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Quick and dirty jails with loopback networking==&lt;br /&gt;
&lt;br /&gt;
===Enable IP forwarding===&lt;br /&gt;
 # sysctl net.inet.ip.forwarding=1&lt;br /&gt;
&lt;br /&gt;
===Configure loopback interface===&lt;br /&gt;
 # sysrc cloned_interfaces=&amp;quot;lo1&amp;quot;&lt;br /&gt;
 # sysrc ipv4_addrs_lo1=&amp;quot;10.10.10.1-9/29&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Configure pf===&lt;br /&gt;
&lt;br /&gt;
  ## pf.conf&lt;br /&gt;
  [...]&lt;br /&gt;
  nat pass on $EXT_IF from $NET_JAIL to any -&amp;gt; $EXT_IP&lt;br /&gt;
  rdr pass on $EXT_IF proto tcp from any to $EXT_IP port $WWW_PORT -&amp;gt; $WWW_JAIL&lt;br /&gt;
  [...]&lt;br /&gt;
&lt;br /&gt;
==Better vnet-based networking==&lt;br /&gt;
&amp;lt;code&amp;gt;#TODO&amp;lt;/code&amp;gt; here!&lt;br /&gt;
&lt;br /&gt;
==Better IPv6-based networking==&lt;br /&gt;
&amp;lt;code&amp;gt;#TODO&amp;lt;/code&amp;gt; here!&lt;/div&gt;</summary>
		<author><name>Rubenerd</name></author>
	</entry>
</feed>