<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">I think I did this correctly <div><br></div><div><div><span class="f1-light color-fg-muted" style="box-sizing: border-box;"><div style="font-size: var(--h1-size, 32px) !important; display: block;"><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://github.com/squid-cache/squid-cache.github.io/pull/45"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://github.com/squid-cache/squid-cache.github.io/pull/45" dir="ltr" role="button" draggable="false" width="300"><table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:#DBDCDC;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300"><tbody><tr><td vertical-align="center" align="center"><img style="width:300px;filter:brightness(0.97);height:150px;" width="300" height="150" draggable="false" class="lp-rich-link-mediaImage" alt="45.png" src="cid:8EAAB299-FEBD-40AA-9B6F-D7BE7B0CFA1C"></td></tr><tr><td vertical-align="center"><table bgcolor="#DBDCDC" cellpadding="0" cellspacing="0" width="300" style="table-layout:fixed;font-family:-apple-system, Helvetica, Arial, sans-serif;background-color:rgba(219, 220, 220, 1);-apple-color-filter:initial;" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://github.com/squid-cache/squid-cache.github.io/pull/45" style="text-decoration: none" draggable="false"><font color="#272727" style="color: rgba(0, 0, 0, 0.847059);">Add pfSense NVMe cache overlay documentation by JonathanDLee24 · Pull Request #45 · squid-cache/squid-cache.github.io</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://github.com/squid-cache/squid-cache.github.io/pull/45" style="text-decoration: none" draggable="false"><font color="#808080" style="color: rgba(0, 0, 0, 0.498039);">github.com</font></a></div></div></td></tr></tbody></table></td></tr></tbody></table></a></div></div><font size="6"></font></span></div><div><br><blockquote type="cite"><div>On Jan 12, 2026, at 14:02, Jonathan Lee <jonathanlee571@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div>Sure thing I have a better version to add to it <br>Sent from my iPhone<br><br><blockquote type="cite">On Jan 12, 2026, at 08:51, Amos Jeffries <squid3@treenet.co.nz> wrote:<br><br>Nice. Thank you.<br><br>Would you mind adding this to the Squid wiki?<br><br>IMO it should go as a new file in this part of the wiki repository:<br><https://github.com/squid-cache/squid-cache.github.io/tree/main/docs/ConfigExamples/Caching><br><br>(you can use the existing WindowsUpdates page there as an example/template layout to match the rest of the ConfigExamples section).<br><br><br><br>Cheers<br>Amos<br><br><blockquote type="cite">On 10/01/2026 09:07, Jonathan Lee wrote:<br>Great find<br>pfSense Squid Cache on NVMe (Persistent Across Reboots)<br>======================================================<br>Goal:<br>-----<br>Use an existing directory on an already-mounted NVMe drive<br>as Squid’s cache, while satisfying pfSense’s requirement<br>that the cache live under /var/squid.<br>This method:<br>- Works across reboots<br>- Survives pfSense & Squid upgrades<br>- Does NOT use symlinks (which do not work)<br>- Does NOT destroy existing data on the drive<br>--------------------------------------------------------<br>Prerequisites:<br>--------------<br>- NVMe drive already mounted (example: /nvme)<br>- Existing cache directory on the drive:<br> /nvme/LOGS_Optane/Squid_Cache<br>- Squid package installed<br>--------------------------------------------------------<br>Step 1: Create the mount point under /var/squid<br>------------------------------------------------<br>(Only creates an empty directory if it doesn’t exist)<br>mkdir -p /var/squid/cache<br>--------------------------------------------------------<br>Step 2: Bind-mount (nullfs) the existing directory<br>--------------------------------------------------<br>(This makes the NVMe directory appear inside /var/squid)<br>mount_nullfs /nvme/LOGS_Optane/Squid_Cache /var/squid/cache<br>NOTE:<br>- No data is moved or copied<br>- Existing cache contents are used directly<br>--------------------------------------------------------<br>Step 3: Make the mount persistent (IMPORTANT)<br>------------------------------------------------<br>pfSense GUI:<br>1. Go to:<br> System → Advanced → fstab<br>2. Click "Add"<br>3. Set the following:<br> - Type: nullfs<br> - Device: /nvme/LOGS_Optane/Squid_Cache<br> - Mount point: /var/squid/cache<br> - Options: rw<br>4. Save<br>5. Apply Changes<br>--------------------------------------------------------<br>Step 4: Configure Squid to use the new path<br>-------------------------------------------<br>pfSense GUI:<br>Services → Squid Proxy Server → Local Cache<br>Set:<br>Cache directory:<br> /var/squid/cache<br>Save and restart Squid.<br>--------------------------------------------------------<br>Step 5: Verify<br>--------------<br>Check that the mount is active:<br>df -h | grep squid<br>mount | grep nullfs<br>You should see the NVMe filesystem mounted at:<br> /var/squid/cache<br>--------------------------------------------------------<br>Behavior After Reboot:<br>----------------------<br>- Mount persists across reboots<br>- pfSense package manager no longer complains<br>- Squid cache cleanup works normally<br>- No manual remounting required<br>--------------------------------------------------------<br>Important Notes:<br>----------------<br>- Symlinks do NOT work (pfSense resolves real paths)<br>- nullfs is the correct and supported workaround<br>- MSDOS/FAT filesystems work but are not ideal long-term<br>- UFS or ZFS is recommended if you ever reformat<br>--------------------------------------------------------<br>End of file<br>Sent from my iPhone<br>_______________________________________________<br>squid-users mailing list<br>squid-users@lists.squid-cache.org<br>https://lists.squid-cache.org/listinfo/squid-users<br></blockquote><br>_______________________________________________<br>squid-users mailing list<br>squid-users@lists.squid-cache.org<br>https://lists.squid-cache.org/listinfo/squid-users<br></blockquote></div></div></blockquote></div><br></div></body></html>